move processes into core

This commit is contained in:
Iuri Matias 2018-07-27 17:33:50 -04:00
parent 46f5760c18
commit 29b0d01f22
15 changed files with 15 additions and 16 deletions

View File

@ -72,7 +72,7 @@ class Engine {
}
processManagerService(_options) {
const ProcessManager = require('../processes/processManager.js');
const ProcessManager = require('./processes/processManager.js');
this.processManager = new ProcessManager({
events: this.events,
logger: this.logger,

View File

@ -1,5 +1,5 @@
const uuid = require('uuid/v1');
const constants = require('../constants');
const constants = require('../../constants');
class Events {

View File

@ -1,7 +1,7 @@
const child_process = require('child_process');
const constants = require('../constants');
const constants = require('../../constants');
const path = require('path');
const utils = require('../utils/utils');
const utils = require('../../utils/utils');
class ProcessLauncher {

View File

@ -17,7 +17,6 @@ class ProcessManager {
self.events.setCommandHandler('processes:launch', (name, cb) => {
let process = self.processes[name];
if (process.state != 'unstarted') {
console.dir("=====> already started " + name);
return cb();
}
process.state = 'starting';

View File

@ -1,4 +1,4 @@
const constants = require('../constants');
const constants = require('../../constants');
const Events = require('./eventsWrapper');
// Set PWD to CWD since Windows doesn't have a value for PWD

View File

@ -1,4 +1,4 @@
const ProcessWrapper = require('../../processes/processWrapper');
const ProcessWrapper = require('../../core/processes/processWrapper');
const BlockchainClient = require('./blockchain');
const i18n = require('../../core/i18n/i18n.js');
const constants = require('../../constants');

View File

@ -1,4 +1,4 @@
const ProcessLauncher = require('../../processes/processLauncher');
const ProcessLauncher = require('../../core/processes/processLauncher');
const utils = require('../../utils/utils.js');
const constants = require('../../constants');

View File

@ -1,5 +1,5 @@
const child_process = require('child_process');
const ProcessWrapper = require('../../processes/processWrapper');
const ProcessWrapper = require('../../core/processes/processWrapper');
const constants = require('../../constants');
let ipfsProcess; // eslint-disable-line no-unused-vars

View File

@ -2,7 +2,7 @@ const fs = require('fs-extra');
const path = require('path');
const constants = require('../../constants');
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 NpmTimer = require('../library_manager/npmTimer');

View File

@ -1,7 +1,7 @@
let utils = require('../../utils/utils.js');
let fs = require('../../core/fs.js');
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');
class SolcW {

View File

@ -1,7 +1,7 @@
const fs = require('../../core/fs');
const shellJs = require('shelljs');
const utils = require('../../utils/utils');
const ProcessLauncher = require('../../processes/processLauncher');
const ProcessLauncher = require('../../core/processes/processLauncher');
const constants = require('../../constants');
const {canonicalHost} = require('../../utils/host');

View File

@ -1,5 +1,5 @@
const child_process = require('child_process');
const ProcessWrapper = require('../../processes/processWrapper');
const ProcessWrapper = require('../../core/processes/processWrapper');
const constants = require('../../constants');
const fs = require('../../core/fs');

View File

@ -1,6 +1,6 @@
const fs = require('../core/fs.js');
const async = require('async');
const ProcessLauncher = require('../processes/processLauncher');
const ProcessLauncher = require('../core/processes/processLauncher');
const utils = require('../utils/utils.js');
const constants = require('../constants');

View File

@ -4,7 +4,7 @@ const utils = require('../utils/utils');
const fs = require('../core/fs');
const constants = require('../constants');
const HardSourceWebpackPlugin = require('hard-source-webpack-plugin');
const ProcessWrapper = require('../processes/processWrapper');
const ProcessWrapper = require('../core/processes/processWrapper');
const path = require('path');
let webpackProcess;

View File

@ -3,7 +3,7 @@ const assert = require('assert');
const sinon = require('sinon');
const TestLogger = require('../lib/tests/test_logger');
const path = require('path');
const ProcessLauncher = require('../lib/processes/processLauncher');
const ProcessLauncher = require('../lib/core/processes/processLauncher');
describe('ProcessWrapper', () => {
let processLauncher;