mirror of https://github.com/embarklabs/embark.git
move processes into core
This commit is contained in:
parent
46f5760c18
commit
29b0d01f22
|
@ -72,7 +72,7 @@ class Engine {
|
||||||
}
|
}
|
||||||
|
|
||||||
processManagerService(_options) {
|
processManagerService(_options) {
|
||||||
const ProcessManager = require('../processes/processManager.js');
|
const ProcessManager = require('./processes/processManager.js');
|
||||||
this.processManager = new ProcessManager({
|
this.processManager = new ProcessManager({
|
||||||
events: this.events,
|
events: this.events,
|
||||||
logger: this.logger,
|
logger: this.logger,
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
const uuid = require('uuid/v1');
|
const uuid = require('uuid/v1');
|
||||||
const constants = require('../constants');
|
const constants = require('../../constants');
|
||||||
|
|
||||||
class Events {
|
class Events {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
const child_process = require('child_process');
|
const child_process = require('child_process');
|
||||||
const constants = require('../constants');
|
const constants = require('../../constants');
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
const utils = require('../utils/utils');
|
const utils = require('../../utils/utils');
|
||||||
|
|
||||||
class ProcessLauncher {
|
class ProcessLauncher {
|
||||||
|
|
|
@ -17,7 +17,6 @@ class ProcessManager {
|
||||||
self.events.setCommandHandler('processes:launch', (name, cb) => {
|
self.events.setCommandHandler('processes:launch', (name, cb) => {
|
||||||
let process = self.processes[name];
|
let process = self.processes[name];
|
||||||
if (process.state != 'unstarted') {
|
if (process.state != 'unstarted') {
|
||||||
console.dir("=====> already started " + name);
|
|
||||||
return cb();
|
return cb();
|
||||||
}
|
}
|
||||||
process.state = 'starting';
|
process.state = 'starting';
|
|
@ -1,4 +1,4 @@
|
||||||
const constants = require('../constants');
|
const constants = require('../../constants');
|
||||||
const Events = require('./eventsWrapper');
|
const Events = require('./eventsWrapper');
|
||||||
|
|
||||||
// Set PWD to CWD since Windows doesn't have a value for PWD
|
// Set PWD to CWD since Windows doesn't have a value for PWD
|
|
@ -1,4 +1,4 @@
|
||||||
const ProcessWrapper = require('../../processes/processWrapper');
|
const ProcessWrapper = require('../../core/processes/processWrapper');
|
||||||
const BlockchainClient = require('./blockchain');
|
const BlockchainClient = require('./blockchain');
|
||||||
const i18n = require('../../core/i18n/i18n.js');
|
const i18n = require('../../core/i18n/i18n.js');
|
||||||
const constants = require('../../constants');
|
const constants = require('../../constants');
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
const ProcessLauncher = require('../../processes/processLauncher');
|
const ProcessLauncher = require('../../core/processes/processLauncher');
|
||||||
const utils = require('../../utils/utils.js');
|
const utils = require('../../utils/utils.js');
|
||||||
const constants = require('../../constants');
|
const constants = require('../../constants');
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
const child_process = require('child_process');
|
const child_process = require('child_process');
|
||||||
const ProcessWrapper = require('../../processes/processWrapper');
|
const ProcessWrapper = require('../../core/processes/processWrapper');
|
||||||
const constants = require('../../constants');
|
const constants = require('../../constants');
|
||||||
|
|
||||||
let ipfsProcess; // eslint-disable-line no-unused-vars
|
let ipfsProcess; // eslint-disable-line no-unused-vars
|
||||||
|
|
|
@ -2,7 +2,7 @@ const fs = require('fs-extra');
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
const constants = require('../../constants');
|
const constants = require('../../constants');
|
||||||
const Utils = require('../../utils/utils');
|
const Utils = require('../../utils/utils');
|
||||||
const ProcessWrapper = require('../../processes/processWrapper');
|
const ProcessWrapper = require('../../core/processes/processWrapper');
|
||||||
const PluginManager = require('live-plugin-manager-git-fix').PluginManager;
|
const PluginManager = require('live-plugin-manager-git-fix').PluginManager;
|
||||||
const NpmTimer = require('../library_manager/npmTimer');
|
const NpmTimer = require('../library_manager/npmTimer');
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
let utils = require('../../utils/utils.js');
|
let utils = require('../../utils/utils.js');
|
||||||
let fs = require('../../core/fs.js');
|
let fs = require('../../core/fs.js');
|
||||||
let currentSolcVersion = require('../../../package.json').dependencies.solc;
|
let currentSolcVersion = require('../../../package.json').dependencies.solc;
|
||||||
const ProcessLauncher = require('../../processes/processLauncher.js');
|
const ProcessLauncher = require('../../core/processes/processLauncher.js');
|
||||||
const uuid = require('uuid/v1');
|
const uuid = require('uuid/v1');
|
||||||
|
|
||||||
class SolcW {
|
class SolcW {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
const fs = require('../../core/fs');
|
const fs = require('../../core/fs');
|
||||||
const shellJs = require('shelljs');
|
const shellJs = require('shelljs');
|
||||||
const utils = require('../../utils/utils');
|
const utils = require('../../utils/utils');
|
||||||
const ProcessLauncher = require('../../processes/processLauncher');
|
const ProcessLauncher = require('../../core/processes/processLauncher');
|
||||||
const constants = require('../../constants');
|
const constants = require('../../constants');
|
||||||
const {canonicalHost} = require('../../utils/host');
|
const {canonicalHost} = require('../../utils/host');
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
const child_process = require('child_process');
|
const child_process = require('child_process');
|
||||||
const ProcessWrapper = require('../../processes/processWrapper');
|
const ProcessWrapper = require('../../core/processes/processWrapper');
|
||||||
const constants = require('../../constants');
|
const constants = require('../../constants');
|
||||||
const fs = require('../../core/fs');
|
const fs = require('../../core/fs');
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
const fs = require('../core/fs.js');
|
const fs = require('../core/fs.js');
|
||||||
const async = require('async');
|
const async = require('async');
|
||||||
const ProcessLauncher = require('../processes/processLauncher');
|
const ProcessLauncher = require('../core/processes/processLauncher');
|
||||||
const utils = require('../utils/utils.js');
|
const utils = require('../utils/utils.js');
|
||||||
const constants = require('../constants');
|
const constants = require('../constants');
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@ const utils = require('../utils/utils');
|
||||||
const fs = require('../core/fs');
|
const fs = require('../core/fs');
|
||||||
const constants = require('../constants');
|
const constants = require('../constants');
|
||||||
const HardSourceWebpackPlugin = require('hard-source-webpack-plugin');
|
const HardSourceWebpackPlugin = require('hard-source-webpack-plugin');
|
||||||
const ProcessWrapper = require('../processes/processWrapper');
|
const ProcessWrapper = require('../core/processes/processWrapper');
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
|
|
||||||
let webpackProcess;
|
let webpackProcess;
|
||||||
|
|
|
@ -3,7 +3,7 @@ const assert = require('assert');
|
||||||
const sinon = require('sinon');
|
const sinon = require('sinon');
|
||||||
const TestLogger = require('../lib/tests/test_logger');
|
const TestLogger = require('../lib/tests/test_logger');
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
const ProcessLauncher = require('../lib/processes/processLauncher');
|
const ProcessLauncher = require('../lib/core/processes/processLauncher');
|
||||||
|
|
||||||
describe('ProcessWrapper', () => {
|
describe('ProcessWrapper', () => {
|
||||||
let processLauncher;
|
let processLauncher;
|
||||||
|
|
Loading…
Reference in New Issue