Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: b0e8bb0d4a
Fetching contributors…

Cannot retrieve contributors at this time

17 lines (14 sloc) 0.465 kB
{print} = require 'util'
{spawn} = require 'child_process'
build = (watch = false) ->
args = ['-c', '-o', 'lib', 'src']
args.unshift('-w') if watch
coffee = spawn 'coffee', args
coffee.stderr.on 'data', (data) ->
process.stderr.write data.toString()
coffee.stdout.on 'data', (data) ->
print data.toString()
task 'build', 'Build lib/ from src/', ->
build()
task 'watch', 'Watch and build lib/ from src/', ->
build(true)
Jump to Line
Something went wrong with that request. Please try again.