Fix for `embark build --contracts` writing into the pipeline

This commit is contained in:
emizzle 2018-06-22 15:26:43 +10:00 committed by Iuri Matias
parent bb21490d87
commit 7187be969e
1 changed files with 6 additions and 1 deletions

View File

@ -194,7 +194,9 @@ class Embark {
engine.startService("libraryManager"); engine.startService("libraryManager");
engine.startService("codeRunner"); engine.startService("codeRunner");
engine.startService("web3"); engine.startService("web3");
engine.startService("pipeline"); if(!options.onlyCompile){
engine.startService("pipeline");
}
engine.startService("deployment", {onlyCompile: options.onlyCompile}); engine.startService("deployment", {onlyCompile: options.onlyCompile});
engine.startService("storage"); engine.startService("storage");
engine.startService("codeGenerator"); engine.startService("codeGenerator");
@ -209,6 +211,9 @@ class Embark {
engine.logger.info("Finished deploying".underline); engine.logger.info("Finished deploying".underline);
// Necessary log for simple projects. This event is trigger to soon because there is no file // Necessary log for simple projects. This event is trigger to soon because there is no file
// Also, not exiting straight after the deploy leaves time for async afterDeploys to finish // Also, not exiting straight after the deploy leaves time for async afterDeploys to finish
if(options.onlyCompile){
return callback();
}
engine.logger.info("If you have no files to build, you can exit now with CTRL+C"); engine.logger.info("If you have no files to build, you can exit now with CTRL+C");
engine.events.on('outputDone', callback); engine.events.on('outputDone', callback);
} }