mirror of https://github.com/embarklabs/embark.git
rename to built
This commit is contained in:
parent
3700323280
commit
4fedf704a8
|
@ -101,13 +101,13 @@ class Pipeline {
|
||||||
// JS files
|
// JS files
|
||||||
async.waterfall([
|
async.waterfall([
|
||||||
function runWebpack(next) {
|
function runWebpack(next) {
|
||||||
let resulted = false;
|
let built = false;
|
||||||
const webpackProcess = new ProcessLauncher({
|
const webpackProcess = new ProcessLauncher({
|
||||||
modulePath: utils.joinPath(__dirname, 'webpackProcess.js'),
|
modulePath: utils.joinPath(__dirname, 'webpackProcess.js'),
|
||||||
logger: self.logger,
|
logger: self.logger,
|
||||||
events: self.events,
|
events: self.events,
|
||||||
exitCallback: function (code) {
|
exitCallback: function (code) {
|
||||||
if (!resulted) {
|
if (!built) {
|
||||||
return next(`File building of ${file.filename} exited with code ${code} before the process finished`);
|
return next(`File building of ${file.filename} exited with code ${code} before the process finished`);
|
||||||
}
|
}
|
||||||
if (code) {
|
if (code) {
|
||||||
|
@ -119,7 +119,7 @@ class Pipeline {
|
||||||
webpackProcess.send({action: constants.pipeline.build, file, importsList});
|
webpackProcess.send({action: constants.pipeline.build, file, importsList});
|
||||||
|
|
||||||
webpackProcess.once('result', constants.pipeline.built, (msg) => {
|
webpackProcess.once('result', constants.pipeline.built, (msg) => {
|
||||||
resulted = true;
|
built = true;
|
||||||
webpackProcess.kill();
|
webpackProcess.kill();
|
||||||
return next(msg.error);
|
return next(msg.error);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue