cha-target
Target extension for cha.
How to setting targets?
var cha = var tasks = // Require target extension.chatarget = cha { source } // Setting a "dev" target.chatarget'dev' { // Require watch extension. chawatch = // Start watcher. cha} // Setting a "dist" target.chatarget'dist' { } // Setting a "all" target.chatarget'all' 'dev' 'dist' // Running target.// cha.target.run('all')
Add a arbitrary command to the scripts
object:
"dev": "node ./test/target dev","dist": "node ./test/target dist",
To run the command we prepend our script name with run:
$ npm run dev > cha@0.1.1 dev /cha> node ./test/target dev read /cha/test/fixtures/coffee/bar.coffeeread /cha/test/fixtures/coffee/foo.coffeeconcat /cha/test/fixtures/coffee/bar.coffee,/cha/test/fixtures/coffee/foo.coffeewrite ./out/foobar3.js