mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-01-11 06:25:57 +00:00
--pipeline option for embark console
, defaults to 'development'
This commit is contained in:
parent
cec7dc5750
commit
e0fda460ba
@ -179,6 +179,7 @@ class Cmd {
|
|||||||
.option('--logfile [logfile]', __('filename to output logs (default: %s)', 'none'))
|
.option('--logfile [logfile]', __('filename to output logs (default: %s)', 'none'))
|
||||||
.option('--loglevel [loglevel]', __('level of logging to display') + ' ["error", "warn", "info", "debug", "trace"]', /^(error|warn|info|debug|trace)$/i, 'debug')
|
.option('--loglevel [loglevel]', __('level of logging to display') + ' ["error", "warn", "info", "debug", "trace"]', /^(error|warn|info|debug|trace)$/i, 'debug')
|
||||||
.option('--locale [locale]', __('language to use (default: en)'))
|
.option('--locale [locale]', __('language to use (default: en)'))
|
||||||
|
.option('--pipeline [pipeline]', __('webpack config to use (default: development)'))
|
||||||
.description(__('Start the Embark console'))
|
.description(__('Start the Embark console'))
|
||||||
.action(function (env, options) {
|
.action(function (env, options) {
|
||||||
i18n.setOrDetectLocale(options.locale);
|
i18n.setOrDetectLocale(options.locale);
|
||||||
@ -187,7 +188,8 @@ class Cmd {
|
|||||||
client: options.client || 'geth',
|
client: options.client || 'geth',
|
||||||
locale: options.locale,
|
locale: options.locale,
|
||||||
logFile: options.logfile,
|
logFile: options.logfile,
|
||||||
logLevel: options.loglevel
|
logLevel: options.loglevel,
|
||||||
|
webpackConfigName: options.pipeline || 'development'
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -256,7 +256,8 @@ class EmbarkController {
|
|||||||
logFile: options.logFile,
|
logFile: options.logFile,
|
||||||
logLevel: options.logLevel,
|
logLevel: options.logLevel,
|
||||||
context: this.context,
|
context: this.context,
|
||||||
ipcRole: 'client'
|
ipcRole: 'client',
|
||||||
|
webpackConfigName: options.webpackConfigName
|
||||||
});
|
});
|
||||||
engine.init();
|
engine.init();
|
||||||
async.waterfall([
|
async.waterfall([
|
||||||
|
Loading…
x
Reference in New Issue
Block a user