Schema for internal use only

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

@nx/rspack:preset

React + Rspack preset generator.

Usage

1nx generate preset ... 2

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

You can specify the collection explicitly as follows:

1nx g @nx/rspack:preset ... 2

Show what will be generated without writing to disk:

1nx g preset ... --dry-run 2

Options

name

Required
string

framework

uiFramework
string
Default: react
Accepted values: none, react, web, nest

The framework to use for the application.

directory

string

The directory to nest the app under.

e2eTestRunner

string
Default: cypress
Accepted values: none, cypress

The e2e test runner to use.

less

boolean

Use less for styling.

monorepo

boolean
Default: false

Creates an integrated monorepo.

sass

boolean

Use sass for styling.

stylus

boolean

Use stylus for styling.

tags

t
string

Add tags to the project (used for linting).

unitTestRunner

string
Default: jest
Accepted values: none, jest

The unit test runner to use.

rootProject

Internal
boolean
Default: true

No description available.