mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-16 18:44:56 -05:00
adding the ability to write out compiled coffeescript to the command line
This commit is contained in:
@@ -456,6 +456,5 @@ js: parser.generate()
|
||||
# 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 (fd) ->
|
||||
posix.open(parser_path, process.O_CREAT | process.O_WRONLY | process.O_TRUNC, 0755).addCallback (fd) ->
|
||||
posix.write(fd, js)
|
||||
|
||||
Reference in New Issue
Block a user