Colum Ferry dd51c18d12
feat(angular): init mfe generator (#6209)
Add generator to scaffold Module Federation configuration for a given Angular application
2021-07-02 13:45:36 +01:00

1006 B

setup-mfe

Generate a Module Federation configuration for a given Angular application.

Usage

nx generate setup-mfe ...

By default, Nx will search for setup-mfe in the default collection provisioned in workspace.json.

You can specify the collection explicitly as follows:

nx g @nrwl/angular:setup-mfe ...

Show what will be generated without writing to disk:

nx g setup-mfe ... --dry-run

Options

appName

Type: string

The name of the application to generate the Module Federation configuration for.

mfeType

Default: shell

Type: string

Possible values: shell, 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 shell application should consume.

skipFormat

Type: boolean

Skip formatting the workspace after the generator completes.