@nrwl/workspace:new
Create an empty workspace.
Usage
nx generate new ...
By default, Nx will search for new
in the default collection provisioned in workspace.json.
You can specify the collection explicitly as follows:
nx g @nrwl/workspace:new ...
Show what will be generated without writing to disk:
nx g new ... --dry-run
Options
appName
Application name.
cli
nx
nx
, angular
CLI used for generating code and running tasks.
defaultBase
Default base branch for affected.
linter
eslint
tslint
, eslint
The tool to use for running lint checks.
name
The name of the workspace.
npmScope
Npm scope for importing libs.
nxCloud
false
Connect the workspace to the free tier of the distributed cache provided by Nx Cloud.
preset
What to create in the new workspace.
packageManager
npm
, yarn
, pnpm
The package manager used to install dependencies.
style
css
The file extension to be used for style files.
skipInstall
false
Skip installing dependency packages.
skipGit
false
Skip initializing a git repository.
Additional Properties
Extra properties of any type may be provided to this object.