@nx/workspace:preset
Creates applications in a new workspace.
Please do not extend this schema as it is part of Nx internal usage.
Creates applications in a new workspace.
1nx generate preset ...
2By 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 ...
2Show what will be generated without writing to disk:
1nx g preset ... --dry-run
2The name of the application.
The name of the preset.
vitevite, rspack, rsbuild, esbuild, webpackThe bundler to use for building the application.
falseGenerate a Dockerfile
playwright, cypress, jest, detox, noneThe tool to use for running e2e tests.
express, koa, fastify, nest, noneThe framework which the application is using
nonenone, prettierThe tool to use for code formatting.
eslinteslint, noneThe tool to use for running lint checks.
trueEnable the App Router for this project.
trueGenerate a src directory for this project.
npm, yarn, pnpm, bunThe package manager used to install dependencies.
The prefix to use for Angular component and directive selectors.
trueAdd routing to the generated application.
cssThe file extension to be used for style files.
falseUse Standalone Components if generating an Angular application.
falseEnable Server-Side Rendering (SSR) and Static Site Generation (SSG/Prerendering) for the Angular application.
Use the Angular Server Routing and App Engine APIs (Developer Preview).
falseUse React Router for routing.
jest, vitest, noneThe tool to use for running unit tests.
trueWhether to use package manager workspaces.
trueSplit the project configurations into <projectRoot>/project.json rather than including it inside workspace.json.
Nx only supports standaloneConfig