@nrwl/angular:host
Create an Angular Host Module Federation Application.
Create an Angular Host Module Federation Application.
nx generate host ...
By default, Nx will search for host in the default collection provisioned in workspace.json.
You can specify the collection explicitly as follows:
nx g @nrwl/angular:host ...
Show what will be generated without writing to disk:
nx g host ... --dry-run
Create an Angular application with configuration in place for Module Federation. If the remotes option is provided, attach the remote application to this application's configuration:
nx g @nrwl/angular:host appName --remotes=remote1
^[a-zA-Z].*$The name to give to the host Angular application.
The names of the remote applications to add to the host.
falseWhether to configure SSR for the host application
falseWhether to configure Tailwind CSS for the application.
Backend project that provides data to this application. This sets up proxy.config.json.
falseShould the host application use dynamic federation?
The directory of the new application.
cypresscypress, 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.
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.
falseWhether to generate a host application that uses standalone components. Note: This is only supported in Angular versions >= 14.1.0
Add tags to the application (used for linting).
jestjest, noneTest runner to use for unit tests.
Emulated, None, ShadowDomSpecifies the view encapsulation strategy.
falseDo not add dependencies to package.json.
falseDo not add or append ngcc to the postinstall script in package.json.
falseSkip formatting files.
trueSplit the project configuration into <projectRoot>/project.json rather than including it inside workspace.json.
Nx only supports standaloneConfig