feat(@embark/cli): introduce `eject-build-config` alias

As discussed in #1121, the `eject-webpack` command in Embark's CLI
exposes implementation details of the CLI's build process, namely webpack.

If we ever change our internal build tooling, commands like this
will become obsolete immediately. That's why this commit introduces
a new command `eject-build-config`, with `eject-webpack` being an alias for it.

So the following commands are the same:

```
$ embark eject-build-config
```
and
```
$ embark eject-webpack
```

The `eject-webpack` command can now be marked as deprecated and removed in future
versions of Embark.

Closes #1121
This commit is contained in:
Pascal Precht 2018-11-26 15:42:41 +01:00 committed by Iuri Matias
parent 7728c542e9
commit ffb8f54939
1 changed files with 3 additions and 2 deletions

View File

@ -382,8 +382,9 @@ class Cmd {
ejectWebpack() { ejectWebpack() {
program program
.command('eject-webpack') .command('eject-build-config')
.description(__('copy the default webpack config into your dapp for customization')) .alias('eject-webpack')
.description(__('copy the default build config into your dapp for customization'))
.action(function() { .action(function() {
embark.initConfig('development', { embark.initConfig('development', {
embarkConfig: 'embark.json', embarkConfig: 'embark.json',