@nx/workspace:new
Create an empty workspace.
Please do not extend this schema as it is part of Nx internal usage.
Create an empty workspace.
1nx generate new ...
2
By default, Nx will search for new
in the default collection provisioned in workspace.json.
You can specify the collection explicitly as follows:
1nx g @nx/workspace:new ...
2
Show what will be generated without writing to disk:
1nx g new ... --dry-run
2
Application name.
Default base branch for affected.
playwright
, cypress
, jest
, detox
, none
The tool to use for running e2e tests.
express
, koa
, fastify
, nest
, none
The framework which the application is using
none
none
, prettier
The tool to use for code formatting.
eslint
eslint
The tool to use for running lint checks.
The name of the workspace.
true
Enable the App Router for this project.
true
Generate a src
directory for this project.
What to create in the new workspace.
npm
, yarn
, pnpm
, bun
The package manager used to install dependencies.
The prefix to use for Angular component and directive selectors.
true
Add routing to the generated application.
css
The file extension to be used for style files.
false
Use Standalone Components if generating an Angular application.
false
Skip installing dependency packages.
false
Enable 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).
Extra properties of any type may be provided to this object.