Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

17 lines (14 sloc) 0.591 kB
fs = require 'fs'
path = require 'path'
{spawn, exec} = require 'child_process'
# Compile the app to Javascript.
task 'build', 'build the lib', ->
child = exec("coffee -c index.coffee", (err, stdout, stderr) ->
if err then console.log stderr.trim() else console.log '-- Build finished succesfully. --'
)
child.stdout.on 'data', (data) -> console.log data
# Test the app
task 'build:test', 'test the lib', ->
child = exec('coffee -c -b test/', (err, stdout, stderr) ->
if err then console.log stderr.trim() else console.log '-- Test built succesfully. --'
)
Jump to Line
Something went wrong with that request. Please try again.