Explorar el 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 hace 12 años
padre
commit
9e283bf149
Se han modificado 1 ficheros con 2 adiciones y 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();