Skip to content

Commit 47d2fec

Browse files
Merge pull request #2592 from Tony133/docs/update-snippets-code
docs(cli): update snippets code
2 parents d222522 + cbe50bf commit 47d2fec

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

content/cli/libraries.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Any functionality that is suitable for re-use is a candidate for being managed a
1919
To get started with creating a library, run the following command:
2020

2121
```bash
22-
nest g library my-library
22+
$ nest g library my-library
2323
```
2424

2525
When you run the command, the `library` schematic prompts you for a prefix (AKA alias) for the library:
@@ -78,7 +78,7 @@ As with application-type projects, libraries each have their own `tsconfig.lib.j
7878
You can build the library with the CLI command:
7979
8080
```bash
81-
nest build my-library
81+
$ nest build my-library
8282
```
8383
8484
#### Using libraries

content/cli/workspaces.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ To enable monorepo mode, you start with a _standard mode_ structure, and add **p
2626
If we run:
2727

2828
```bash
29-
nest new my-project
29+
$ nest new my-project
3030
```
3131

3232
We've constructed a _standard mode_ structure, with a folder structure that looks like this:
@@ -49,8 +49,8 @@ We've constructed a _standard mode_ structure, with a folder structure that look
4949
We can convert this to a monorepo mode structure as follows:
5050

5151
```bash
52-
cd my-project
53-
nest generate app my-app
52+
$ cd my-project
53+
$ nest generate app my-app
5454
```
5555

5656
At this point, `nest` converts the existing structure to a **monorepo mode** structure. This results in a few important changes. The folder structure now looks like this:

0 commit comments

Comments
 (0)