@nx/angular:move
Move an Angular project to another folder in the workspace.
Use the `@nx/workspace:move` generator instead. This generator will be removed in Nx v19.
Move an Angular project to another folder in the workspace.
1nx generate move ...
21nx g mv ... #same
2By default, Nx will search for move in the default collection provisioned in workspace.json.
You can specify the collection explicitly as follows:
1nx g @nx/angular:move ...
2Show what will be generated without writing to disk:
1nx g move ... --dry-run
2Move libs/my-feature-lib to libs/shared/my-feature-lib.:
1nx g @nx/angular:move --project my-feature-lib --destination shared/my-feature-lib
2The folder to move the Angular project into.
The name of the Angular project to move.
(?:^@[a-zA-Z0-9-*~][a-zA-Z0-9-*._~]*\\/[a-zA-Z0-9-~][a-zA-Z0-9-._~]*|^[a-zA-Z][^:]*)$The new name of the project after the move.
The new import path to use in the tsconfig.base.json.
trueUpdate the import path to reflect the new location.
falseSkip formatting files.
Watch the replays of exciting talks on developer tooling and monorepos! Catch all the insightful presentations from the event on our YouTube channel.