@nx/react:federate-module
Creat a federated module, which can be loaded by a remote host.
Creat a federated module, which can be loaded by a remote host.
1nx generate federate-module ...
2
By default, Nx will search for federate-module
in the default collection provisioned in workspace.json.
You can specify the collection explicitly as follows:
1nx g @nx/react:federate-module ...
2
Show what will be generated without writing to disk:
1nx g federate-module ... --dry-run
2
Create a federated module called my-remote-app, that exposes my-cmp from libs/ui/src/component/my-cmp.ts.:
1nx g federate-module --path=libs/ui/src/component/my-cmp.ts --remote=my-remote-app
2
^[a-zA-Z][^:]*$
The name of the module.
The host / shell application for this remote.
cypress
cypress
, none
Test runner to use for end to end (e2e) tests.
eslint
eslint
The tool to use for running lint checks.
The path to the module to be federated.
as-provided
, derived
Whether to generate the project name and root directory as provided (as-provided
) or generate them composing their values and taking the configured layout into account (derived
).
The name of the remote.
css
The file extension to be used for style files.
jest
jest
, none
Test runner to use for unit tests.
false
Skip formatting files.