docs(docs): mention remove schematic in grouping libraries (#3017)

* docs(docs): mention remove schematic in grouping libraries

* docs(docs): make command shorter

Co-authored-by: Isaac Mann <isaacplmann+git@gmail.com>
This commit is contained in:
Isaac Mann 2020-05-15 16:18:06 -04:00 committed by GitHub
parent ba86bbd51b
commit 0e3e17b1af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,6 +12,14 @@ For instance, if a library under the `booking` folder is now being shared by mul
nx g move --project booking-some-library shared/some-library nx g move --project booking-some-library shared/some-library
``` ```
## Remove Schematic
Similarly, if you no longer need a library, you can remove it with the [`@nrwl/workspace:remove` schematic](/{{framework}}/plugins/workspace/schematics/remove).
```bash
nx g remove booking-some-library
```
## Example Workspace ## Example Workspace
Let's use Nrwl Airlines as an example organization. This organization has two apps, `booking` and `check-in`. In the Nx workspace, libraries related to `booking` are grouped under a `libs/booking` folder, libraries related to `check-in` are grouped under a `libs/check-in` folder and libraries used in both applications are placed in `libs/shared`. You can also have nested grouping folders, (i.e. `libs/shared/seatmap`). Let's use Nrwl Airlines as an example organization. This organization has two apps, `booking` and `check-in`. In the Nx workspace, libraries related to `booking` are grouped under a `libs/booking` folder, libraries related to `check-in` are grouped under a `libs/check-in` folder and libraries used in both applications are placed in `libs/shared`. You can also have nested grouping folders, (i.e. `libs/shared/seatmap`).