Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Fetching contributors…
Cannot retrieve contributors at this time
20 lines (13 sloc) 494 Bytes
const {spawn} = require('child_process')
const exec = !(cmd, args=[], opts={}, cb=->) ->
const bin = spawn(cmd, args, opts)
bin.stdout.pipe process.stdout
bin.stderr.pipe process.stderr
bin.on \exit, cb
const build = !(w='') ->
exec 'coco', ["-#{w}bco", 'lib/', 'src/']
const watch = !-> build('w')
task \build "compile source files" !-> build()
task \watch "compile source files and watch for changes" watch
task \clean "delete generated files" !->
exec 'rm', ['-rf', 'lib']
Jump to Line
Something went wrong with that request. Please try again.