mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-02-25 05:25:25 +00:00
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…
x
Reference in New Issue
Block a user