making bin/cake install add CoffeeScript as a Node.js library, and creating an index.js file for the top-level inclusion.

This commit is contained in:
Jeremy Ashkenas
2010-04-20 20:20:38 -04:00
parent 1cddb2aa88
commit fb4d4a609b
3 changed files with 14 additions and 0 deletions

10
lib/index.js Normal file
View File

@@ -0,0 +1,10 @@
(function(){
var _a, key, val;
var __hasProp = Object.prototype.hasOwnProperty;
// Loader for CoffeeScript as a Node.js library.
_a = require('./coffee-script');
for (key in _a) { if (__hasProp.call(_a, key)) {
val = _a[key];
(exports[key] = val);
}}
})();