add compilation step

This commit is contained in:
Iuri Matias 2019-07-23 15:19:08 -04:00
parent 7c040062c5
commit d5091b3b43
3 changed files with 15 additions and 3 deletions

View File

@ -13,7 +13,8 @@ class Compiler {
this.plugins = options.plugins;
this.isCoverage = options.isCoverage;
embark.events.setCommandHandler("compiler:contracts", this.compile_contracts.bind(this));
// embark.events.setCommandHandler("compiler:contracts", this.compile_contracts.bind(this));
embark.events.setCommandHandler("compiler:contracts:compile", this.compile_contracts.bind(this));
}
private compile_contracts(contractFiles: any[], cb: any) {

View File

@ -163,8 +163,8 @@ class EmbarkController {
engine.registerModuleGroup("coreComponents");
// engine.registerModuleGroup("blockchain");
// engine.registerModuleGroup("compiler");
engine.registerModuleGroup("blockchain");
engine.registerModuleGroup("compiler");
// engine.startService("processManager");
// engine.startService("web3");
@ -205,6 +205,14 @@ class EmbarkController {
engine.startEngine(() => {
callback();
engine.events.request("config:contractsFiles", (contractsFiles) => {
engine.events.request("compiler:contracts:compile", contractsFiles, (err, compiledContracts) => {
console.dir("compilation done")
console.dir(compiledContracts)
})
})
});
},
function startDashboard(callback) {

View File

@ -123,6 +123,9 @@ class Engine {
logger: this.logger,
config: this.config
});
// TODO: we shouldn't need useDashboard
this.registerModulePackage('embark-library-manager', {useDashboard: this.useDashboard});
}
blockchainComponents() {