mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-17 11:01:25 -05:00
node conversion finished, narwhal removed.
This commit is contained in:
@@ -12,4 +12,12 @@ exports.compile: (code, callback) ->
|
||||
coffee.write(code)
|
||||
coffee.close()
|
||||
|
||||
exports.compile_files: (paths, callback) ->
|
||||
js: ''
|
||||
coffee: process.createChildProcess 'coffee', ['--print'].concat(paths)
|
||||
coffee.addListener 'output', (results) ->
|
||||
js += results if results?
|
||||
coffee.addListener 'exit', ->
|
||||
callback(js)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user