mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-02-09 22:04:01 +00:00
remove use of initConfig
This commit is contained in:
parent
4ebe7cdeb7
commit
e7d70c33fd
16
cmd/cmd.js
16
cmd/cmd.js
@ -107,10 +107,6 @@ class Cmd {
|
||||
_options.logLevel = _options.loglevel; // fix casing
|
||||
_options.onlyCompile = _options.contracts;
|
||||
_options.client = _options.client || 'geth';
|
||||
embark.initConfig(env || 'development', {
|
||||
embarkConfig: 'embark.json',
|
||||
interceptLogs: false
|
||||
});
|
||||
embark.build(_options);
|
||||
});
|
||||
}
|
||||
@ -130,10 +126,6 @@ class Cmd {
|
||||
.description(__('run dapp (default: %s)', 'development'))
|
||||
.action(function (env, options) {
|
||||
i18n.setOrDetectLocale(options.locale);
|
||||
embark.initConfig(env || 'development', {
|
||||
embarkConfig: 'embark.json',
|
||||
interceptLogs: false
|
||||
});
|
||||
embark.run({
|
||||
env: env || 'development',
|
||||
serverPort: options.port,
|
||||
@ -245,10 +237,6 @@ class Cmd {
|
||||
_options.logFile = _options.logfile; // fix casing
|
||||
_options.logLevel = _options.loglevel; // fix casing
|
||||
_options.client = _options.client || 'geth';
|
||||
embark.initConfig(env || 'development', {
|
||||
embarkConfig: 'embark.json',
|
||||
interceptLogs: false
|
||||
});
|
||||
embark.upload(_options);
|
||||
});
|
||||
}
|
||||
@ -263,10 +251,6 @@ class Cmd {
|
||||
.description(__('generates documentation based on the smart contracts configured'))
|
||||
.action(function (env, options) {
|
||||
i18n.setOrDetectLocale(options.locale);
|
||||
embark.initConfig(env || 'development', {
|
||||
embarkConfig: 'embark.json',
|
||||
interceptLogs: false
|
||||
});
|
||||
embark.graph({
|
||||
env: env || 'development',
|
||||
logFile: options.logfile,
|
||||
|
Loading…
x
Reference in New Issue
Block a user