Explorar o código

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 %!s(int64=12) %!d(string=hai) anos
pai
achega
9e283bf149
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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();