@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.
Information
This generator is usually used as part of the process of migrating from an Angular CLI Workspace to Nx Workspaces using ng add @nrwl/angular
.
You can read more about migrating from Angular CLI to Nx here.
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-run