--pipeline option for embark console, defaults to 'development'

This commit is contained in:
Michael Bradley, Jr 2018-08-18 20:04:16 -05:00
parent cec7dc5750
commit e0fda460ba
2 changed files with 5 additions and 2 deletions

View File

@ -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'
}); });
}); });
} }

View File

@ -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([