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

22 lines (19 sloc) 0.694 kB
sys = require 'sys'
fs = require 'fs'
exec = require('child_process').exec
spawn = require('child_process').spawn
LEVELS =
whitespace: 'WHITESPACE_ONLY'
simple: 'SIMPLE_OPTIMIZATIONS'
advanced: 'ADVANCED_OPTIMIZATIONS'
task 'watch', 'watches and compiles coffee', ->
puts "Spawning coffee watcher for node"
coffee = spawn 'coffee', ['-cwl', '--no-wrap', '-o', 'javascript', 'coffeescript']
puts ""
[coffee].forEach (child) ->
child.stdout.on 'data', (data) ->
sys.print data
exec "growlnotify -m \"#{data}\" -t \"Cakefile\""
child.stderr.on 'data' , (data) ->
sys.print data
exec "growlnotify -m \"#{data}\" -t \"Cakefile\""
Jump to Line
Something went wrong with that request. Please try again.