@nx/angular:remote
Create an Angular Remote Module Federation Application.
The State of JS survey is live, featuring a monorepo tools sectionThe State of JS survey is live, featuring a monorepo tools sectionVote for us
Create an Angular Remote Module Federation Application.
1nx generate remote ...
2
By default, Nx will search for remote
in the default collection provisioned in workspace.json.
You can specify the collection explicitly as follows:
1nx g @nx/angular:remote ...
2
Show what will be generated without writing to disk:
1nx g remote ... --dry-run
2
Create an Angular app with configuration in place for Module Federation. If host is provided, attach this remote app to host app's configuration.:
1nx g @nx/angular:remote appName --host=host --port=4201
2
^[a-zA-Z][^:]*$
The name to give to the remote Angular app.
The name of the host app to attach this remote app to.
false
Whether to configure Tailwind CSS for the application.
Backend project that provides data to this application. This sets up proxy.config.json
.
The directory of the new application.
cypress
cypress
, playwright
, none
Test runner to use for end to end (E2E) tests.
false
Specifies if the style will be in the ts file.
false
Specifies if the template will be in the ts file.
eslint
eslint
, none
The tool to use for running lint checks.
The port on which this app should be served.
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
).
html-selector
The prefix to apply to generated selectors.
css
css
, scss
, sass
, less
The file extension to be used for style files.
false
Skip creating spec files.
true
Create an application with stricter type checking and build optimization options.
false
Whether or not to configure the ESLint parserOptions.project
option. We do not do this by default for lint performance reasons.
true
Whether to generate a remote application with standalone components.
false
Whether to configure SSR for the remote application to be consumed by a host application using SSR.
Add tags to the application (used for linting).
true
Whether the module federation configuration and webpack configuration files should use TS.
jest
jest
, none
Test runner to use for unit tests.
Emulated
, None
, ShadowDom
Specifies the view encapsulation strategy.
false
Do not add dependencies to package.json
.
false
Skip formatting files.
true
Split the project configuration into <projectRoot>/project.json
rather than including it inside workspace.json
.
Nx only supports standaloneConfig