mirror of https://github.com/embarklabs/embark.git
pipeline fires placeholder event only after first build
This commit is contained in:
parent
de0034c1fc
commit
03c51fba46
|
@ -15,6 +15,7 @@ class Pipeline {
|
|||
this.plugins = options.plugins;
|
||||
this.webpackConfigName = options.webpackConfigName;
|
||||
this.pipelinePlugins = this.plugins.getPluginsFor('pipeline');
|
||||
this.isFirstBuild = true;
|
||||
}
|
||||
|
||||
build(abi, contractsJSON, path, callback) {
|
||||
|
@ -28,6 +29,11 @@ class Pipeline {
|
|||
|
||||
async.waterfall([
|
||||
function createPlaceholderPage(next){
|
||||
if (!self.isFirstBuild) {
|
||||
return self.events.request('embark-building-placeholder', next);
|
||||
}
|
||||
self.isFirstBuild = false;
|
||||
next();
|
||||
},
|
||||
function buildTheContracts(next) {
|
||||
self.buildContracts(next);
|
||||
|
|
Loading…
Reference in New Issue