Created
August 26, 2010 18:25
-
-
Save theshortcut/551908 to your computer and use it in GitHub Desktop.
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
fs = require 'fs' | |
{spawn, exec} = require 'child_process' | |
task 'build', 'build Milestones from source', -> | |
compiledString = '' | |
data = spawn 'coffee', ['-p', '--no-wrap', 'src/'] | |
data.stdout.on 'data', (buffer) -> | |
compiledString += buffer.toString() | |
data.on 'exit', -> | |
fs.writeFile 'app.js', compiledString |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment