Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

file 16 lines (13 sloc) 0.483 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
{print} = require 'util'
{spawn} = require 'child_process'

runner = (params) ->
  coffee = spawn 'coffee', params
  coffee.stderr.on 'data', (data) ->
    process.stderr.write data.toString()
  coffee.stdout.on 'data', (data) ->
    print data.toString()

task 'build', 'Build lib/ from src/', ->
  runner ['-c', '-o', 'js', 'src']

task 'watch', 'Watch src/ and spec/ for changes', ->
  runner ['-w', '-c', '-o', 'temp/src', 'src']
  runner ['-w', '-c', '-o', 'temp/spec', 'spec']
Something went wrong with that request. Please try again.