fix broken js generation on asset change: (temporarily) revert change to not deploy on asset change and force redeploy of everything
This commit is contained in:
parent
48c72ab257
commit
8327725c3b
|
@ -76,13 +76,15 @@ Engine.prototype.pipelineService = function(options) {
|
||||||
pipeline.build(abi);
|
pipeline.build(abi);
|
||||||
self.events.emit('outputDone');
|
self.events.emit('outputDone');
|
||||||
});
|
});
|
||||||
this.events.on('file-event', function(fileType, path) {
|
// TODO: still need to redeploy contracts because the original contracts
|
||||||
if (fileType === 'asset') {
|
// config is being corrupted
|
||||||
self.config.reloadConfig();
|
//this.events.on('file-event', function(fileType, path) {
|
||||||
pipeline.build(self.abi, path);
|
// if (fileType === 'asset') {
|
||||||
self.events.emit('outputDone');
|
// self.config.reloadConfig();
|
||||||
}
|
// pipeline.build(self.abi, path);
|
||||||
});
|
// self.events.emit('outputDone');
|
||||||
|
// }
|
||||||
|
//});
|
||||||
};
|
};
|
||||||
|
|
||||||
Engine.prototype.abiService = function(options) {
|
Engine.prototype.abiService = function(options) {
|
||||||
|
@ -119,10 +121,12 @@ Engine.prototype.deploymentService = function(options) {
|
||||||
});
|
});
|
||||||
|
|
||||||
this.events.on('file-event', function(fileType, path) {
|
this.events.on('file-event', function(fileType, path) {
|
||||||
if (fileType === 'contract' || fileType === 'config') {
|
// TODO: for now need to deploy on asset chanes as well
|
||||||
|
// because the contractsManager config is corrupted after a deploy
|
||||||
|
//if (fileType === 'contract' || fileType === 'config') {
|
||||||
self.config.reloadConfig();
|
self.config.reloadConfig();
|
||||||
self.deployManager.deployContracts(function() {});
|
self.deployManager.deployContracts(function() {});
|
||||||
}
|
//}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue