{exec} = require 'child_process'

task 'build', 'Build lib from src', ->
    exec './node_modules/coffee-script/bin/coffee --compile --map --output lib src', (err, stdout) ->
        console.log stdout
        throw err if err

task 'test', 'Run library tests', ->
    exec './node_modules/mocha/bin/mocha --compilers coffee:coffee-script/register -R spec --colors test/*.coffee', (err, stdout) ->
        console.log stdout
        throw err if err
