Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
30 lines (22 sloc) 638 Bytes
{spawn} = require 'child_process'
option '-a', '--all', 'run all dynamic tests'
option '-w', '--watch', 'watch for changes'
task 'build', '', (options) ->
args = ['-c', '-o', 'lib', 'src']
args.splice 2, 0, '-w' if
coffee = spawn 'coffee', args, {stdio: 'inherit', env: process.env}
task "test", "run all dynamic tests", (options) ->
process.env.TIMBITS_TEST_WHICH = 'all' if options.all
args = [
args.push '--watch' if
mocha = spawn 'mocha', args, {
stdio: 'inherit'
env: process.env
Something went wrong with that request. Please try again.