move code generator to a module

This commit is contained in:
Iuri Matias 2018-07-27 14:54:25 -04:00 committed by Pascal Precht
parent c2002e16fe
commit bae3ee884d
No known key found for this signature in database
GPG Key ID: 0EE28D8D6FD85D7D
2 changed files with 4 additions and 3 deletions

View File

@ -1,3 +0,0 @@
var __mainContext = __mainContext || (
this ? this : typeof self !== 'undefined' ? self : void 0
);

View File

@ -166,6 +166,10 @@ class Engine {
self.events.request("code-generator:embarkjs:build", () => {
self.events.emit('code-generator-ready', modifiedAssets);
});
//self.codeGenerator.buildEmbarkJS(function() {
// self.events.emit('code-generator-ready');
//});
};
const cargo = async.cargo((tasks, callback) => {
const modifiedAssets = tasks.map(task => task.modifiedAsset).filter(asset => asset); // filter null elements