Permalink
Browse files

Update Cakefile to support node >=0.6.0

  • Loading branch information...
1 parent c5be772 commit 725f882d3c71e08662902ad8efb46667e5b12429 @meritt committed Apr 22, 2012
Showing with 4 additions and 7 deletions.
  1. +4 −7 Cakefile
View
@@ -1,16 +1,13 @@
-require.paths.unshift "#{__dirname}/node_modules"
-
-require.paths.unshift __dirname + '/lib'
-
-{print} = require 'sys'
+{print} = require 'util'
{spawn} = require 'child_process'
build = (callback) ->
coffee = spawn 'coffee', ['-c', '-o', 'lib', 'src']
+
coffee.stderr.on 'data', (data) ->
process.stderr.write data.toString()
+
coffee.stdout.on 'data', (data) ->
print data.toString()
-task 'build', 'Build lib/ from src/', ->
- build()
+task 'build', 'Build lib/ from src/', -> build()

0 comments on commit 725f882

Please sign in to comment.