@nrwl/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
nx generate ng-add ...By default, Nx will search for ng-add in the default collection provisioned in workspace.json.
You can specify the collection explicitly as follows:
nx g @nrwl/angular:ng-add ...Show what will be generated without writing to disk:
nx g ng-add ... --dry-runOptions
defaultBase
Default base branch for affected. NOTE: only used if running the generator in an Angular CLI workspace.
e2eTestRunner
cypressprotractor, cypress, noneTest runner to use for end to end (e2e) tests. NOTE: only used if running the generator in an Nx workspace.
linter
eslinteslint, noneThe tool to use for running lint checks. NOTE: only used if running the generator in an Nx workspace.
npmScope
Npm scope for importing libs. NOTE: only used if running the generator in an Angular CLI workspace.
preserveAngularCliLayout
falsePreserve the Angular CLI layout instead of moving the app into apps. NOTE: only used if running the generator in an Angular CLI workspace.
skipInstall
falseSkip installing added packages.
skipFormat
falseSkip formatting files. NOTE: only used if running the generator in an Nx workspace.
style
csscss, scss, sass, lessThe file extension to be used for style files. NOTE: only used if running the generator in an Nx workspace.
skipPackageJson
falseDo not add dependencies to package.json. NOTE: only used if running the generator in an Nx workspace.
unitTestRunner
jestkarma, jest, noneTest runner to use for unit tests. NOTE: only used if running the generator in an Nx workspace.