Schema for internal use only

Please do not extend this schema as it is part of Nx internal usage.

@nx/workspace:preset

Creates applications in a new workspace.

Usage

nx generate preset ...

By default, Nx will search for preset in the default collection provisioned in workspace.json.

You can specify the collection explicitly as follows:

nx g @nx/workspace:preset ...
Nx 15 and lower use @nrwl/ instead of @nx/

Show what will be generated without writing to disk:

nx g preset ... --dry-run

Options

name

Required
string

The name of the application.

preset

Required
string

The name of the preset.

bundler

string
Default: vite
Accepted values: webpack, vite, rspack, esbuild

The bundler to use for building the application.

docker

boolean
Default: false

Generate a Dockerfile

e2eTestRunner

string
Accepted values: cypress, jest, detox, none

The tool to use for running e2e tests.

framework

string
Accepted values: express, koa, fastify, nest, none

The framework which the application is using

linter

string
Default: eslint
Accepted values: eslint

The tool to use for running lint checks.

npmScope

string

Npm scope for importing libs.

nextAppDir

boolean
Default: false

Enable experimental app/ for the project

packageManager

string
Accepted values: npm, yarn, pnpm

The package manager used to install dependencies.

routing

boolean
Default: true

Add routing to the generated application.

style

string
Default: css

The file extension to be used for style files.

standaloneApi

boolean
Default: false

Use Standalone Components if generating an Angular application.

standaloneConfig

Deprecated
boolean
Default: true

Split the project configurations into <projectRoot>/project.json rather than including it inside workspace.json.

Nx only supports standaloneConfig