@nrwl/angular:application
Creates an Angular application.
Usage
nx generate application ...
nx g app ... #same
By default, Nx will search for application
in the default collection provisioned in workspace.json.
You can specify the collection explicitly as follows:
nx g @nrwl/angular:application ...
Show what will be generated without writing to disk:
nx g application ... --dry-run
Options
addTailwind
false
Whether to configure Tailwind CSS for the application.
backendProject
Backend project that provides data to this application. This sets up proxy.config.json
.
directory
The directory of the new application.
e2eTestRunner
cypress
protractor
, cypress
, none
Test runner to use for end to end (E2E) tests.
federationType
static
static
, dynamic
Use either Static or Dynamic Module Federation pattern for the application.
Use the host
or remote
generators instead. Support for generating Module Federation applications using the application generator will be removed in an upcoming version.
host
The name of the host application that the remote application will be consumed by.
Use the host
or remote
generators instead. Support for generating Module Federation applications using the application generator will be removed in an upcoming version.
inlineStyle
false
Specifies if the style will be in the ts file.
inlineTemplate
false
Specifies if the template will be in the ts file.
linter
eslint
eslint
, none
The tool to use for running lint checks.
mfe
false
Generate a Module Federation configuration for the application
Use the host
or remote
generators instead. Support for generating Module Federation applications using the application generator will be removed in an upcoming version.
mfeType
remote
host
, remote
Type of application to generate the Module Federation configuration for.
Use the host
or remote
generators instead. Support for generating Module Federation applications using the application generator will be removed in an upcoming version.
name
^[a-zA-Z].*$
The name of the application.
prefix
html-selector
The prefix to apply to generated selectors.
port
The port at which the remote application should be served.
routing
false
Generate a routing module.
remotes
A list of remote application names that the host application should consume.
Use the host
or remote
generators instead. Support for generating Module Federation applications using the application generator will be removed in an upcoming version.
style
css
css
, scss
, sass
, less
The file extension to be used for style files.
skipTests
false
Skip creating spec files.
skipFormat
false
Skip formatting files.
skipPackageJson
false
Do not add dependencies to package.json
.
strict
true
Create an application with stricter type checking and build optimization options.
standaloneConfig
Split the project configuration into <projectRoot>/project.json
rather than including it inside workspace.json
.
setParserOptionsProject
false
Whether or not to configure the ESLint parserOptions.project
option. We do not do this by default for lint performance reasons.
tags
Add tags to the application (used for linting).
unitTestRunner
jest
karma
, jest
, none
Test runner to use for unit tests.
viewEncapsulation
Emulated
, None
, ShadowDom
Specifies the view encapsulation strategy.