blob: 114344289fb0296ffa806c1e40c046e103bc658f [file] [log] [blame]
{spawn, exec} = require 'child_process'
task 'build', 'continually build the JavaScript code', ->
coffee = spawn 'coffee', ['-cw', '-o', 'lib', 'src']
coffee.stdout.on 'data', (data) -> console.log data.toString().trim()
task 'doc', 'rebuild the Docco documentation', ->
exec([
'docco src/xml2js.coffee'
].join(' && '), (err) ->
throw err if err
)