@nrwl/workspace:workspace

Create an empty workspace.

Usage

nx generate workspace ...

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

You can specify the collection explicitly as follows:

nx g @nrwl/workspace:workspace ...

Show what will be generated without writing to disk:

nx g workspace ... --dry-run

Options

commit

oneOf [boolean, object ]
Default: true

Initial repository commit information.

cli

string
Default: nx
Accepted values: nx, angular

CLI used for generating code and running tasks

directory

string
Default: Format: path

The directory name to create the workspace in.

defaultBase

string

Default base branch for affected.

name

string

The name of the workspace.

npmScope

string

Npm scope for importing libs.

preset

string

Preset of the workspace.

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.

skipInstall

boolean
Default: false

Skip installing dependency packages.

skipGit

g
boolean
Default: false

Skip initializing a git repository.