@nx/angular:remote
Create an Angular Producer (Remote) Module Federation Application.
Create an Angular Producer (Remote) Module Federation Application.
1nx generate remote ...
21nx g producer ... #same
2By 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 ...
2Show what will be generated without writing to disk:
1nx g remote ... --dry-run
2Create an Angular app with configuration in place for Module Federation. If Consumer (host) is provided, attach this Producer (remote) app to Consumer (host) app's configuration.:
1nx g @nx/angular:remote appName --host=host --port=4201
2Create an Angular app with configuration in place for Module Federation. If Consumer (host) is provided, attach this Producer (remote) app to Consumer (host) app's configuration.:
1nx g @nx/angular:producer appName --consumer=host --port=4201
2The directory of the new application.
The name of the Consumer (host) app to attach this Producer (remote) app to.
^[a-zA-Z_$][a-zA-Z_$0-9]*$The name to give to the Producer (remote) Angular app.
falseWhether to configure Tailwind CSS for the application.
Backend project that provides data to this application. This sets up proxy.config.json.
playwrightplaywright, cypress, noneTest runner to use for end to end (E2E) tests.
falseSpecifies if the style will be in the ts file.
falseSpecifies if the template will be in the ts file.
eslinteslint, noneThe tool to use for running lint checks.
The port on which this app should be served.
html-selectorThe prefix to apply to generated selectors.
csscss, scss, sass, lessThe file extension to be used for style files.
falseSkip creating spec files.
trueCreate an application with stricter type checking and build optimization options.
falseWhether or not to configure the ESLint parserOptions.project option. We do not do this by default for lint performance reasons.
trueWhether to generate a Producer (remote) application with standalone components.
falseWhether to configure SSR for the Producer (remote) application to be consumed by a Consumer (host) application using SSR.
Creates a server application using the Server Routing and App Engine APIs (Developer Preview). Note: this is only supported in Angular versions >= 19.0.0.
Add tags to the application (used for linting).
trueWhether the module federation configuration and webpack configuration files should use TS.
jestjest, vitest, noneTest runner to use for unit tests.
Emulated, None, ShadowDomSpecifies the view encapsulation strategy.
falseDo not add dependencies to package.json.
falseSkip formatting files.
trueSplit the project configuration into <projectRoot>/project.json rather than including it inside workspace.json.
Nx only supports standaloneConfig