Schema for internal use only

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

@nx/angular:ng-add

Migrates an Angular CLI workspace to Nx or adds the Angular plugin to an Nx workspace. NOTE: Does not work in the --dry-run mode.

Usage

1nx generate ng-add ... 2

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

You can specify the collection explicitly as follows:

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

Show what will be generated without writing to disk:

1nx g ng-add ... --dry-run 2

Options

defaultBase

string

Default base branch for affected. NOTE: only used if running the generator in an Angular CLI workspace.

e2eTestRunner

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

Test runner to use for end to end (e2e) tests. NOTE: only used if running the generator in an Nx workspace.

linter

string
Default: eslint
Accepted values: eslint, none

The tool to use for running lint checks. NOTE: only used if running the generator in an Nx workspace.

style

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

The file extension to be used for style files. NOTE: only used if running the generator in an Nx workspace.

unitTestRunner

string
Default: jest
Accepted values: karma, jest, none

Test runner to use for unit tests. NOTE: only used if running the generator in an Nx workspace.

skipInstall

boolean
Default: false

Skip installing added packages.

skipFormat

boolean
Default: false

Skip formatting files. NOTE: only used if running the generator in an Nx workspace.

skipPackageJson

boolean
Default: false

Do not add dependencies to package.json. NOTE: only used if running the generator in an Nx workspace.

skipPostInstall

boolean
Default: false

Do not add or append ngcc to the postinstall script in package.json. NOTE: only used if running the generator in an Nx workspace.

npmScope

Deprecated
string

Npm scope for importing libs. NOTE: only used if running the generator in an Angular CLI workspace.

This will be inferred from your root package.json