Minor fixes for rebase

This commit is contained in:
emizzle 2018-10-25 07:21:08 +02:00 committed by Pascal Precht
parent 9a830c3423
commit dcdcfb5b32
No known key found for this signature in database
GPG Key ID: 0EE28D8D6FD85D7D
2 changed files with 12 additions and 5 deletions

View File

@ -134,10 +134,17 @@ class Engine {
} }
pipelineService(_options) { pipelineService(_options) {
this.registerModule('pipeline', {plugins: this.plugins, env: this.env, webpackConfigName: this.webpackConfigName}); const self = this;
const pipeline = new Pipeline({ this.registerModule('pipeline', {
this.events.on('code-generator-ready', function () { webpackConfigName: this.webpackConfigName
pipeline.build(abi, contractsJSON, null, () => { });
this.events.on('code-generator-ready', function (modifiedAssets) {
self.events.request('code', function (abi, contractsJSON) {
self.events.request('pipeline:build', {abi, contractsJSON, modifiedAssets}, () => {
self.events.emit('outputDone');
});
});
});
} }
serviceMonitor() { serviceMonitor() {

View File

@ -239,7 +239,7 @@ Blockchain.prototype.run = function () {
} }
self.readyCallback(); self.readyCallback();
} }
this.logger.info(`${self.client.name}: ${data}`); self.logger.info(`${self.client.name}: ${data}`);
}); });
self.child.on('exit', (code) => { self.child.on('exit', (code) => {