mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-17 19:11:22 -05:00
node conversion finished, narwhal removed.
This commit is contained in:
@@ -17,4 +17,17 @@
|
||||
coffee.write(code);
|
||||
return coffee.close();
|
||||
};
|
||||
exports.compile_files = function compile_files(paths, callback) {
|
||||
var coffee, js;
|
||||
js = '';
|
||||
coffee = process.createChildProcess('coffee', ['--print'].concat(paths));
|
||||
coffee.addListener('output', function(results) {
|
||||
if ((typeof results !== "undefined" && results !== null)) {
|
||||
return js += results;
|
||||
}
|
||||
});
|
||||
return coffee.addListener('exit', function() {
|
||||
return callback(js);
|
||||
});
|
||||
};
|
||||
})();
|
||||
Reference in New Issue
Block a user