mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-17 19:11:22 -05:00
adding the ability to write out compiled coffeescript to the command line
This commit is contained in:
@@ -558,8 +558,7 @@
|
||||
// puts parser.generate()
|
||||
posix = require('posix');
|
||||
parser_path = 'lib/coffee_script/parser.js';
|
||||
posix.unlink(parser_path);
|
||||
posix.open(parser_path, process.O_CREAT | process.O_WRONLY, 0755).addCallback(function(fd) {
|
||||
posix.open(parser_path, process.O_CREAT | process.O_WRONLY | process.O_TRUNC, 0755).addCallback(function(fd) {
|
||||
return posix.write(fd, js);
|
||||
});
|
||||
})();
|
||||
Reference in New Issue
Block a user