Skip to content

Commit

Permalink
docs(angular): update angular cli migration docs (#9176)
Browse files Browse the repository at this point in the history
  • Loading branch information
leosvelperez committed Mar 3, 2022
1 parent 8014491 commit bf513b1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/shared/migration/migration-angular.md
Expand Up @@ -10,12 +10,14 @@ using a monorepo approach. If you are currently using an Angular CLI workspace,

## Using the Nx CLI while preserving the existing structure

To use the Nx CLI in an existing Angular CLI workspace while keeping your existing file structure in place, use the `ng add` command with the `--preserveAngularCLILayout` option:
To use the Nx CLI in an existing Angular CLI workspace while keeping your existing file structure in place, use the `ng add` command with the `--preserve-angular-cli-layout` option:

```bash
ng add @nrwl/workspace --preserveAngularCLILayout
ng add @nrwl/workspace --preserve-angular-cli-layout
```

> **Note**: If you are migrating to an Nx versions previous to `v13.8.4` (e.g. `ng add @nrwl/workspace@12`) use the `--preserveAngularCLILayout` option instead.
This installs the `@nrwl/workspace` package into your workspace and applies the following changes to your workspace:

- Adds and installs the `@nrwl/workspace` package in your development dependencies.
Expand Down

1 comment on commit bf513b1

@vercel
Copy link

@vercel vercel bot commented on bf513b1 Mar 3, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.