Schema for internal use only

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

@nx/angular:init

Initializes the @nx/angular plugin. NOTE: Does not work in the --dry-run mode.

Usage

1nx generate init ... 2

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

You can specify the collection explicitly as follows:

1nx g @nx/angular:init ... 2
Nx 15 and lower use @nrwl/ instead of @nx/

Show what will be generated without writing to disk:

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

Examples

Installs angular dependencies and initializes the @nx/angular plugin with the scss stylesheet format.:

1nx g @nx/angular:init --style=scss 2
Nx 15 and lower use @nrwl/ instead of @nx/

Options

e2eTestRunner

string
Default: cypress
Accepted values: cypress, playwright, none

Test runner to use for end to end (e2e) tests.

linter

string
Default: eslint
Accepted values: eslint, none

The tool to use for running lint checks.

unitTestRunner

string
Default: jest
Accepted values: jest, none

Test runner to use for unit tests.

style

string
Default: css
Accepted values: css, scss, sass, less

The file extension to be used for style files.

skipInstall

boolean
Default: false

Skip installing after adding @nx/workspace.

skipFormat

boolean
Default: false

Skip formatting files.

skipPackageJson

boolean
Default: false

Do not add dependencies to package.json.