Yet another javascript build tool YAJSBT
Because I needed an excuse to write some javascript.
npm install
- Run tests with
npm test
Install it globally
npm install -g jsake
get some help
jsake --help # -h
Register some tasks like so:
// if no name is defined, the function is registered as 'default'
task(function(){
this.log("echo hello world");
}).describe("Prints hello world to the console.");
// tasks can take arguments
task("add", function(a, b){
this.log(a + b);
}).describe("Takes two numbers and adds them");
// register a task with the name 'ls'
task("ls", function(){
// shell commands are ran synchronously
this.sh("ls");
}).describe("Prints the files in the current working directory.");
execute a task:
jsake add 1 2
Please feel free to open issues and pull requests. Everyone's code is welcome with open arms.
MIT license, feel free to do any horrible or fantastic thing you want with this code