cc.ake
Installation
npm install -g cc.ake
Usage
ake = require 'cc.ake' # add node_modules binaries to head of path do akenodeModulePath # ensure every argument passes. strings are treated as unix commands and # functions are run normally. Either a bad shell exit status or an exception # thrown from a function will cause the process to exit. akeassert 'rm -f bad' akeinvoke 'othertask' # invoke another task 'cp -n something somewhere' # if exit status is bad, terminate process 'echo yo' -> do stuff -> # this will terminate the coffeescript process throw "an error" akewatch 'testdir' /.coffee$/ consolelog 'changed'fname exec 'coffee -c testdir' /.js$/ consolelog 'js updated'fname