@nrwl/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 @nrwl/workspace:preset ...

Show what will be generated without writing to disk:

nx g preset ... --dry-run

Options

cli

string

CLI powering the workspace.

linter

string
Default: eslint
Accepted values: eslint

The tool to use for running lint checks.

name

string

The name of the application.

npmScope

string

Npm scope for importing libs.

preset

string

The name of the preset.

packageManager

string
Accepted values: npm, yarn, pnpm

The package manager used to install dependencies.

style

string
Default: css

The file extension to be used for style files.

standaloneConfig

boolean

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