mirror of https://github.com/embarklabs/embark.git
Add watcher to console command
This commit is contained in:
parent
2d7876146b
commit
a5b9502e82
15
lib/index.js
15
lib/index.js
|
@ -155,14 +155,6 @@ class Embark {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
engine.startService("fileWatcher");
|
engine.startService("fileWatcher");
|
||||||
|
|
||||||
if (!options.useDashboard) {
|
|
||||||
const REPL = require('./dashboard/repl.js');
|
|
||||||
let repl = new REPL({env: engine.env});
|
|
||||||
repl.start(function () {
|
|
||||||
callback();
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
], function (err, _result) {
|
], function (err, _result) {
|
||||||
if (err) {
|
if (err) {
|
||||||
|
@ -274,6 +266,7 @@ class Embark {
|
||||||
engine.startService("deployment", {onlyCompile: false});
|
engine.startService("deployment", {onlyCompile: false});
|
||||||
engine.startService("storage");
|
engine.startService("storage");
|
||||||
engine.startService("codeGenerator");
|
engine.startService("codeGenerator");
|
||||||
|
engine.startService("fileWatcher");
|
||||||
|
|
||||||
callback();
|
callback();
|
||||||
},
|
},
|
||||||
|
@ -284,16 +277,14 @@ class Embark {
|
||||||
},
|
},
|
||||||
function waitForWriteFinish(callback) {
|
function waitForWriteFinish(callback) {
|
||||||
engine.logger.info("Finished deploying".underline);
|
engine.logger.info("Finished deploying".underline);
|
||||||
engine.events.on('outputDone', (err) => {
|
engine.events.once('outputDone', (err) => {
|
||||||
engine.logger.info(__("finished building").underline);
|
engine.logger.info(__("finished building").underline);
|
||||||
callback(err);
|
callback(err);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
function startREPL(callback) {
|
function startREPL(callback) {
|
||||||
let repl = new REPL({env: engine.env});
|
let repl = new REPL({env: engine.env});
|
||||||
repl.start(function () {
|
repl.start(callback);
|
||||||
callback();
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
], function (err, _result) {
|
], function (err, _result) {
|
||||||
if (err) {
|
if (err) {
|
||||||
|
|
Loading…
Reference in New Issue