Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
13 lines (9 sloc) 405 Bytes
{spawn, exec} = require 'child_process'
task 'build', 'Build project from src/*.coffee to lib/*.js', ->
exec 'coffee -o lib -c src', (err) -> throw err if err
datacb = (data) ->
console.log data.toString().replace /\s+$/, ''
task 'watch', 'Build and watch for changes', ->
child = spawn 'coffee', ['-w', '-o', 'lib', '-c', 'src']
child.stdout.on 'data', datacb
child.stderr.on 'data', datacb
Jump to Line
Something went wrong with that request. Please try again.