From 7d65c2b0cd45ba89b1db13e9a8896b39267cf2e5 Mon Sep 17 00:00:00 2001 From: "Michael Bradley, Jr" Date: Tue, 4 Sep 2018 07:35:53 -0500 Subject: [PATCH] rename placeholder event: 'build-placeholder' --- lib/modules/webserver/index.js | 2 +- lib/modules/webserver/server.js | 2 +- lib/pipeline/pipeline.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/modules/webserver/index.js b/lib/modules/webserver/index.js index db871008..3abe7d35 100644 --- a/lib/modules/webserver/index.js +++ b/lib/modules/webserver/index.js @@ -73,7 +73,7 @@ class WebServer { } listenToCommands() { - this.events.setCommandHandler('embark-building-placeholder', (cb) => this.buildPlaceholderPage(cb)); + this.events.setCommandHandler('build-placeholder', (cb) => this.buildPlaceholderPage(cb)); this.events.setCommandHandler('open-browser', (cb) => this.openBrowser(cb)); this.events.setCommandHandler('start-webserver', (cb) => this.server.start(cb)); this.events.setCommandHandler('stop-webserver', (cb) => this.server.stop(cb)); diff --git a/lib/modules/webserver/server.js b/lib/modules/webserver/server.js index f0c1a681..97e00e8d 100644 --- a/lib/modules/webserver/server.js +++ b/lib/modules/webserver/server.js @@ -34,7 +34,7 @@ class Server { function createPlaceholderPage(next) { if (self.isFirstStart) { self.isFirstStart = false; - return self.events.request('embark-building-placeholder', next); + return self.events.request('build-placeholder', next); } next(); }, diff --git a/lib/pipeline/pipeline.js b/lib/pipeline/pipeline.js index 069d4840..fea9fa1b 100644 --- a/lib/pipeline/pipeline.js +++ b/lib/pipeline/pipeline.js @@ -30,7 +30,7 @@ class Pipeline { async.waterfall([ function createPlaceholderPage(next){ if (!self.isFirstBuild) { - return self.events.request('embark-building-placeholder', next); + return self.events.request('build-placeholder', next); } self.isFirstBuild = false; next();