mirror of https://github.com/embarklabs/embark.git
add compilation step
This commit is contained in:
parent
7c040062c5
commit
d5091b3b43
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue