mirror of
https://github.com/jashkenas/coffeescript.git
synced 2022-11-09 12:23:24 -05:00
Added an extension on node's 'require' module so it can import .coffee module and added some tests to make sure it works.
This commit is contained in:
parent
3c597dde72
commit
709f17c278
5 changed files with 11 additions and 0 deletions
|
@ -17,6 +17,9 @@
|
|||
Lexer = this.Lexer;
|
||||
parser = this.parser;
|
||||
}
|
||||
require.registerExtension('.coffee', function(content) {
|
||||
return require('coffee-script').compile(content);
|
||||
});
|
||||
// The current CoffeeScript version number.
|
||||
exports.VERSION = '0.5.5';
|
||||
// Instantiate a Lexer for our use here.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue