mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-02-10 14:16:47 +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.logLevel = _options.loglevel; // fix casing
|
||||||
_options.onlyCompile = _options.contracts;
|
_options.onlyCompile = _options.contracts;
|
||||||
_options.client = _options.client || 'geth';
|
_options.client = _options.client || 'geth';
|
||||||
embark.initConfig(env || 'development', {
|
|
||||||
embarkConfig: 'embark.json',
|
|
||||||
interceptLogs: false
|
|
||||||
});
|
|
||||||
embark.build(_options);
|
embark.build(_options);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -130,10 +126,6 @@ class Cmd {
|
|||||||
.description(__('run dapp (default: %s)', 'development'))
|
.description(__('run dapp (default: %s)', 'development'))
|
||||||
.action(function (env, options) {
|
.action(function (env, options) {
|
||||||
i18n.setOrDetectLocale(options.locale);
|
i18n.setOrDetectLocale(options.locale);
|
||||||
embark.initConfig(env || 'development', {
|
|
||||||
embarkConfig: 'embark.json',
|
|
||||||
interceptLogs: false
|
|
||||||
});
|
|
||||||
embark.run({
|
embark.run({
|
||||||
env: env || 'development',
|
env: env || 'development',
|
||||||
serverPort: options.port,
|
serverPort: options.port,
|
||||||
@ -245,10 +237,6 @@ class Cmd {
|
|||||||
_options.logFile = _options.logfile; // fix casing
|
_options.logFile = _options.logfile; // fix casing
|
||||||
_options.logLevel = _options.loglevel; // fix casing
|
_options.logLevel = _options.loglevel; // fix casing
|
||||||
_options.client = _options.client || 'geth';
|
_options.client = _options.client || 'geth';
|
||||||
embark.initConfig(env || 'development', {
|
|
||||||
embarkConfig: 'embark.json',
|
|
||||||
interceptLogs: false
|
|
||||||
});
|
|
||||||
embark.upload(_options);
|
embark.upload(_options);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -263,10 +251,6 @@ class Cmd {
|
|||||||
.description(__('generates documentation based on the smart contracts configured'))
|
.description(__('generates documentation based on the smart contracts configured'))
|
||||||
.action(function (env, options) {
|
.action(function (env, options) {
|
||||||
i18n.setOrDetectLocale(options.locale);
|
i18n.setOrDetectLocale(options.locale);
|
||||||
embark.initConfig(env || 'development', {
|
|
||||||
embarkConfig: 'embark.json',
|
|
||||||
interceptLogs: false
|
|
||||||
});
|
|
||||||
embark.graph({
|
embark.graph({
|
||||||
env: env || 'development',
|
env: env || 'development',
|
||||||
logFile: options.logfile,
|
logFile: options.logfile,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user