mirror of https://github.com/embarklabs/embark.git
fix: re-enable plugin command module and clean up engine (#1961)
This commit is contained in:
parent
6f90099d47
commit
5b72620c92
|
@ -69,7 +69,8 @@ class EmbarkController {
|
|||
});
|
||||
});
|
||||
}
|
||||
simulator(_options) {
|
||||
|
||||
simulator(_options) {
|
||||
// this.context = options.context || [constants.contexts.simulator, constants.contexts.blockchain];
|
||||
// let simulator = new Simulator({
|
||||
// blockchainConfig: this.config.blockchainConfig,
|
||||
|
@ -150,6 +151,7 @@ simulator(_options) {
|
|||
|
||||
engine.registerModuleGroup("coreComponents");
|
||||
engine.registerModuleGroup("stackComponents");
|
||||
engine.registerModuleGroup("consoleComponents");
|
||||
|
||||
// TODO: replace with individual plugins
|
||||
engine.registerModuleGroup("namesystem");
|
||||
|
@ -362,6 +364,7 @@ simulator(_options) {
|
|||
|
||||
engine.registerModuleGroup("coreComponents");
|
||||
engine.registerModuleGroup("stackComponents");
|
||||
engine.registerModuleGroup("consoleComponents");
|
||||
|
||||
// TODO: replace with individual plugins
|
||||
engine.registerModuleGroup("namesystem");
|
||||
|
|
|
@ -80,6 +80,7 @@ class Engine {
|
|||
blockchain: this.blockchainComponents,
|
||||
coreComponents: this.coreComponents,
|
||||
stackComponents: this.stackComponents,
|
||||
consoleComponents: this.consoleComponents,
|
||||
blockchainStackComponents: this.blockchainStackComponents,
|
||||
compiler: this.compilerComponents,
|
||||
contracts: this.contractsComponents,
|
||||
|
@ -140,6 +141,12 @@ class Engine {
|
|||
cb();
|
||||
});
|
||||
this.registerModulePackage('embark-code-runner', {ipc: this.ipc});
|
||||
|
||||
// TODO: we shouldn't need useDashboard
|
||||
this.registerModulePackage('embark-library-manager', {useDashboard: this.useDashboard});
|
||||
}
|
||||
|
||||
consoleComponents() {
|
||||
// TODO: suggestions should be moved to their own module
|
||||
this.registerModulePackage('embark-console', {
|
||||
events: this.events,
|
||||
|
@ -149,10 +156,7 @@ class Engine {
|
|||
logger: this.logger,
|
||||
config: this.config
|
||||
});
|
||||
|
||||
|
||||
// TODO: we shouldn't need useDashboard
|
||||
this.registerModulePackage('embark-library-manager', {useDashboard: this.useDashboard});
|
||||
this.registerModulePackage('embark-plugin-cmd');
|
||||
}
|
||||
|
||||
blockchainStackComponents() {
|
||||
|
|
Loading…
Reference in New Issue