-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add inital Coffeescript build package
- Loading branch information
1 parent
0ab16cc
commit be30eb7
Showing
2 changed files
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.