Colum Ferry 8b1f812c85
fix(angular): change mfe naming convention to use host
Previously, naming convention of consuming applications for MFEs was `shell`.
Change it to match Webpack Module Federation's naming convention of calling it `host`.

BREAKING CHANGE:
The `mfeType` options have changed from `shell | remote` to `host | remote`.
2021-07-14 10:40:14 +01:00

60 lines
1.0 KiB
Markdown

# setup-mfe
Generate a Module Federation configuration for a given Angular application.
## Usage
```bash
nx generate setup-mfe ...
```
By default, Nx will search for `setup-mfe` in the default collection provisioned in `angular.json`.
You can specify the collection explicitly as follows:
```bash
nx g @nrwl/angular:setup-mfe ...
```
Show what will be generated without writing to disk:
```bash
nx g setup-mfe ... --dry-run
```
## Options
### appName (_**required**_)
Type: `string`
The name of the application to generate the Module Federation configuration for.
### mfeType (_**required**_)
Default: `remote`
Type: `string`
Possible values: `host`, `remote`
Type of application to generate the Module Federation configuration for.
### port
Type: `number`
The port at which the remote application should be served.
### remotes
Type: `array`
A list of remote application names that the host application should consume.
### skipFormat
Type: `boolean`
Skip formatting the workspace after the generator completes.