move asset files check from index to pipeline; index shouldn't know about the internals

This commit is contained in:
Iuri Matias 2018-07-07 16:51:24 +03:00
parent a428928b53
commit 5ade9e090c
2 changed files with 4 additions and 4 deletions

View File

@ -208,9 +208,6 @@ class Embark {
return callback(null, true);
}
engine.logger.info("Finished deploying".underline);
if (!engine.config.assetFiles || !Object.keys(engine.config.assetFiles).length) {
return callback();
}
engine.events.on('outputDone', (err) => {
engine.logger.info(__("finished building").underline);
callback(err, true);

View File

@ -4,7 +4,6 @@ const ProcessLauncher = require('../process/processLauncher');
const utils = require('../utils/utils.js');
const constants = require('../constants');
require("babel-preset-react");
require("babel-preset-es2015");
require("babel-preset-es2016");
@ -27,6 +26,10 @@ class Pipeline {
const importsList = {};
let placeholderPage;
if (!this.assetFiles || !Object.keys(this.assetFiles).length) {
return callback();
}
async.waterfall([
function createPlaceholderPage(next){
self.events.request('embark-building-placeholder', (html) => {