Browse Source

amberc.js: assign AmberC instance to module.exports

it is now possible to use require('amberc') to
retrieve an instance of the amber compiler
Manfred Kroehnert 12 years ago
parent
commit
9e283bf149
1 changed files with 2 additions and 0 deletions
  1. 2 0
      bin/amberc.js

+ 2 - 0
bin/amberc.js

@@ -739,5 +739,7 @@ AmberC.prototype.closure_compile = function(sourceFile, minifiedFile, callback)
 	);
 };
 
+module.exports = new AmberC();
+
 var amberc = new AmberC();
 amberc.main();