Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

20 lines (13 sloc) 0.494 kb
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.