mirror of https://github.com/embarklabs/embark.git
Merge pull request #432 from embark-framework/addCompileOnlyFlag
add command for only compiling contracts in build command
This commit is contained in:
commit
380b2258e7
|
@ -92,6 +92,7 @@ class Cmd {
|
||||||
build() {
|
build() {
|
||||||
program
|
program
|
||||||
.command('build [environment]')
|
.command('build [environment]')
|
||||||
|
.option('--contracts', 'only compile contracts into Embark wrappers')
|
||||||
.option('--logfile [logfile]', __('filename to output logs (default: none)'))
|
.option('--logfile [logfile]', __('filename to output logs (default: 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)'))
|
||||||
|
@ -101,6 +102,7 @@ class Cmd {
|
||||||
_options.env = env || 'development';
|
_options.env = env || 'development';
|
||||||
_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.onlyCompile = _options.contracts;
|
||||||
embark.build(_options);
|
embark.build(_options);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -204,7 +204,7 @@ class Embark {
|
||||||
engine.startService("web3");
|
engine.startService("web3");
|
||||||
engine.startService("pipeline");
|
engine.startService("pipeline");
|
||||||
engine.startService("codeGenerator");
|
engine.startService("codeGenerator");
|
||||||
engine.startService("deployment");
|
engine.startService("deployment", {onlyCompile: options.onlyCompile});
|
||||||
engine.startService("ipfs");
|
engine.startService("ipfs");
|
||||||
engine.startService("swarm", {bzz: engine.web3.bzz});
|
engine.startService("swarm", {bzz: engine.web3.bzz});
|
||||||
callback();
|
callback();
|
||||||
|
|
Loading…
Reference in New Issue