1
0
Fork 0
mirror of https://github.com/jashkenas/coffeescript.git synced 2022-11-09 12:23:24 -05:00
jashkenas--coffeescript/lib/coffee_script/runner.js

11 lines
No EOL
355 B
JavaScript

(function(){
var coffee, paths;
// Quickie script to compile and run all the files given as arguments.
process.mixin(require('sys'));
coffee = require('./coffee-script');
paths = process.ARGV;
paths = paths.slice(2, paths.length);
paths.length ? coffee.compile_files(paths, function(js) {
return eval(js);
}) : require('./repl');
})();