@nx/workspace:preset
Creates applications in a new workspace.
Nx Webinar: Monorepos - The Benefits, Challenges and Importance of Tooling SupportNx Webinar: Monorepos - The Benefits, Challenges and Importance of Tooling SupportRegister
Please do not extend this schema as it is part of Nx internal usage.
Creates applications in a new workspace.
1nx generate preset ...
2
By default, Nx will search for preset
in the default collection provisioned in workspace.json.
You can specify the collection explicitly as follows:
1nx g @nx/workspace:preset ...
2
Show what will be generated without writing to disk:
1nx g preset ... --dry-run
2
The name of the application.
The name of the preset.
vite
webpack
, vite
, rspack
, esbuild
The bundler to use for building the application.
false
Generate a Dockerfile
cypress
, playwright
, jest
, detox
, none
The tool to use for running e2e tests.
express
, koa
, fastify
, nest
, none
The framework which the application is using
eslint
eslint
The tool to use for running lint checks.
true
Enable the App Router for this project.
npm
, yarn
, pnpm
The package manager used to install dependencies.
true
Add routing to the generated application.
css
The file extension to be used for style files.
false
Use Standalone Components if generating an Angular application.
false
Enable Server-Side Rendering (SSR) and Static Site Generation (SSG/Prerendering) for the Angular application.
true
Split the project configurations into <projectRoot>/project.json
rather than including it inside workspace.json
.
Nx only supports standaloneConfig