Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
15 lines (12 sloc) 639 Bytes
{spawn, exec} = require 'child_process'
sys = require 'util'
runCommand = (name, args...) ->
proc = spawn name, args
proc.stderr.on 'data', (buffer) -> console.log buffer.toString()
proc.stdout.on 'data', (buffer) -> console.log buffer.toString()
proc.on 'exit', (status) -> process.exit(1) if status isnt 0
task 'watch', 'compiles client CS and LESS', (options) ->
#runCommand 'sass', ['--watch', 'public/css/sass:public/css']
#runCommand 'coffee', '-o','models','-wc', 'coffeescript/models'
#runCommand 'vows', ['--spec']
runCommand 'coffee', '-o', 'public/javascripts', '-wc', 'assets/coffee'