@nx/angular:application
Creates an Angular application.
Creates an Angular application.
Create an application named my-app
:
1nx g @nx/angular:application apps/my-app
2
1nx generate application ...
2
1nx g app ... #same
2
By default, Nx will search for application
in the default collection provisioned in workspace.json.
You can specify the collection explicitly as follows:
1nx g @nx/angular:application ...
2
Show what will be generated without writing to disk:
1nx g application ... --dry-run
2
The directory of the new application.
webpack
, esbuild
Bundler to use to build the application. It defaults to esbuild
for Angular versions >= 17.0.0. Otherwise, it defaults to webpack
. Note: The esbuild
bundler is only considered stable from Angular v17.
^[a-zA-Z][^:]*$
The name of the application.
true
Enable routing for the application.
true
Generate an application that is setup to use standalone components.
false
Whether to configure Tailwind CSS for the application.
Backend project that provides data to this application. This sets up proxy.config.json
.
playwright
playwright
, cypress
, 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.
false
Generate a Angular app with a minimal setup.
app
Format: html-selector
The prefix to apply to generated selectors.
The port at which the remote application should be served.
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.
false
Creates an application with Server-Side Rendering (SSR) and Static Site Generation (SSG/Prerendering) enabled.
Add tags to the application (used for linting).
jest
jest
, vitest
, none
Test runner to use for unit tests.
Emulated
, None
, ShadowDom
Specifies the view encapsulation strategy.
false
Create an application at the root of the workspace.
false
Skip formatting files.
false
Do not add dependencies to package.json
.
true
Split the project configuration into <projectRoot>/project.json
rather than including it inside workspace.json
.
Nx only supports standaloneConfig