Skip to content

Commit

Permalink
Add inital Coffeescript build package
Browse files Browse the repository at this point in the history
  • Loading branch information
doublerebel committed Sep 4, 2012
1 parent 0ab16cc commit be30eb7
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Cakefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{print} = require 'util'
{spawn} = require 'child_process'

task 'build', 'Build lib/ from src/', ->
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()
coffee.on 'exit', (code) ->
callback?() if code is 0

task 'watch', 'Watch src/ for changes', ->
coffee = spawn 'coffee', ['-w', '-c', '-o', 'lib', 'src']
coffee.stderr.on 'data', (data) ->
process.stderr.write data.toString()
coffee.stdout.on 'data', (data) ->
print data.toString()
Empty file added package.json
Empty file.

0 comments on commit be30eb7

Please sign in to comment.