Skip to content

Commit 091dd76

Browse files
Merge pull request #3164 from nestjs/11.0.0
release: version 11.0.0
2 parents 4ba0026 + 7b1c939 commit 091dd76

20 files changed

+1075
-246
lines changed

content/cli/overview.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,15 @@ Aside from a few specific considerations around how the **build** process works
4848

4949
You can use either mode to manage multiple projects. Here's a quick summary of the differences:
5050

51-
| Feature | Standard Mode | Monorepo Mode |
52-
| ----------------------------------------------------- | ------------------------------------------------------------------ | ---------------------------------------------------------- |
53-
| Multiple projects | Separate file system structure | Single file system structure |
54-
| `node_modules` & `package.json` | Separate instances | Shared across monorepo |
55-
| Default compiler | `tsc` | webpack |
56-
| Compiler settings | Specified separately | Monorepo defaults that can be overridden per project |
57-
| Config files like `.eslintrc.js`, `.prettierrc`, etc. | Specified separately | Shared across monorepo |
58-
| `nest build` and `nest start` commands | Target defaults automatically to the (only) project in the context | Target defaults to the **default project** in the monorepo |
59-
| Libraries | Managed manually, usually via npm packaging | Built-in support, including path management and bundling |
51+
| Feature | Standard Mode | Monorepo Mode |
52+
| ---------------------------------------------------------- | ------------------------------------------------------------------ | ---------------------------------------------------------- |
53+
| Multiple projects | Separate file system structure | Single file system structure |
54+
| `node_modules` & `package.json` | Separate instances | Shared across monorepo |
55+
| Default compiler | `tsc` | webpack |
56+
| Compiler settings | Specified separately | Monorepo defaults that can be overridden per project |
57+
| Config files like `eslint.config.mjs`, `.prettierrc`, etc. | Specified separately | Shared across monorepo |
58+
| `nest build` and `nest start` commands | Target defaults automatically to the (only) project in the context | Target defaults to the **default project** in the monorepo |
59+
| Libraries | Managed manually, usually via npm packaging | Built-in support, including path management and bundling |
6060

6161
Read the sections on [Workspaces](/cli/monorepo) and [Libraries](/cli/libraries) for more detailed information to help you decide which mode is most suitable for you.
6262

content/cli/usages.md

+49-43
Original file line numberDiff line numberDiff line change
@@ -54,25 +54,25 @@ $ nest g <schematic> <name> [options]
5454

5555
##### Schematics
5656

57-
| Name | Alias | Description |
58-
| ------------- | ----- | ----------------------------------------------------------------------------------------------------------------------|
59-
| `app` | | Generate a new application within a monorepo (converting to monorepo if it's a standard structure). |
60-
| `library` | `lib` | Generate a new library within a monorepo (converting to monorepo if it's a standard structure). |
61-
| `class` | `cl` | Generate a new class. |
62-
| `controller` | `co` | Generate a controller declaration. |
63-
| `decorator` | `d` | Generate a custom decorator. |
64-
| `filter` | `f` | Generate a filter declaration. |
65-
| `gateway` | `ga` | Generate a gateway declaration. |
66-
| `guard` | `gu` | Generate a guard declaration. |
67-
| `interface` | `itf` | Generate an interface. |
68-
| `interceptor` | `itc` | Generate an interceptor declaration. |
69-
| `middleware` | `mi` | Generate a middleware declaration. |
70-
| `module` | `mo` | Generate a module declaration. |
71-
| `pipe` | `pi` | Generate a pipe declaration. |
72-
| `provider` | `pr` | Generate a provider declaration. |
73-
| `resolver` | `r` | Generate a resolver declaration. |
74-
| `resource` | `res` | Generate a new CRUD resource. See the [CRUD (resource) generator](/recipes/crud-generator) for more details. (TS only)|
75-
| `service` | `s` | Generate a service declaration. |
57+
| Name | Alias | Description |
58+
| ------------- | ----- | ---------------------------------------------------------------------------------------------------------------------- |
59+
| `app` | | Generate a new application within a monorepo (converting to monorepo if it's a standard structure). |
60+
| `library` | `lib` | Generate a new library within a monorepo (converting to monorepo if it's a standard structure). |
61+
| `class` | `cl` | Generate a new class. |
62+
| `controller` | `co` | Generate a controller declaration. |
63+
| `decorator` | `d` | Generate a custom decorator. |
64+
| `filter` | `f` | Generate a filter declaration. |
65+
| `gateway` | `ga` | Generate a gateway declaration. |
66+
| `guard` | `gu` | Generate a guard declaration. |
67+
| `interface` | `itf` | Generate an interface. |
68+
| `interceptor` | `itc` | Generate an interceptor declaration. |
69+
| `middleware` | `mi` | Generate a middleware declaration. |
70+
| `module` | `mo` | Generate a module declaration. |
71+
| `pipe` | `pi` | Generate a pipe declaration. |
72+
| `provider` | `pr` | Generate a provider declaration. |
73+
| `resolver` | `r` | Generate a resolver declaration. |
74+
| `resource` | `res` | Generate a new CRUD resource. See the [CRUD (resource) generator](/recipes/crud-generator) for more details. (TS only) |
75+
| `service` | `s` | Generate a service declaration. |
7676

7777
##### Options
7878

@@ -107,15 +107,19 @@ $ nest build <name> [options]
107107

108108
##### Options
109109

110-
| Option | Description |
111-
| ------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
112-
| `--path [path]` | Path to `tsconfig` file. <br/>Alias `-p` |
113-
| `--config [path]` | Path to `nest-cli` configuration file. <br/>Alias `-c` |
114-
| `--watch` | Run in watch mode (live-reload).<br /> If you're using `tsc` for compilation, you can type `rs` to restart the application (when `manualRestart` option is set to `true`). <br/>Alias `-w` |
115-
| `--builder [name]` | Specify the builder to use for compilation (`tsc`, `swc`, or `webpack`). <br/>Alias `-b` |
116-
| `--webpack` | Use webpack for compilation (deprecated: use `--builder webpack` instead). |
117-
| `--webpackPath` | Path to webpack configuration. |
118-
| `--tsc` | Force use `tsc` for compilation. |
110+
| Option | Description |
111+
| ----------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
112+
| `--path [path]` | Path to `tsconfig` file. <br/>Alias `-p` |
113+
| `--config [path]` | Path to `nest-cli` configuration file. <br/>Alias `-c` |
114+
| `--watch` | Run in watch mode (live-reload).<br /> If you're using `tsc` for compilation, you can type `rs` to restart the application (when `manualRestart` option is set to `true`). <br/>Alias `-w` |
115+
| `--builder [name]` | Specify the builder to use for compilation (`tsc`, `swc`, or `webpack`). <br/>Alias `-b` |
116+
| `--webpack` | Use webpack for compilation (deprecated: use `--builder webpack` instead). |
117+
| `--webpackPath` | Path to webpack configuration. |
118+
| `--tsc` | Force use `tsc` for compilation. |
119+
| `--watchAssets` | Watch non-TS files (assets like `.graphql` etc.). See [Assets](cli/monorepo#assets) for more details. |
120+
| `--type-check` | Enable type checking (when SWC is used). |
121+
| `--all` | Build all projects in a monorepo. |
122+
| `--preserveWatchOutput` | Keep outdated console output in watch mode instead of clearing the screen. (`tsc` watch mode only) |
119123

120124
#### nest start
121125

@@ -133,20 +137,22 @@ $ nest start <name> [options]
133137

134138
##### Options
135139

136-
| Option | Description |
137-
| ----------------------- | -------------------------------------------------------------------------------------------------------------------- |
138-
| `--path [path]` | Path to `tsconfig` file. <br/>Alias `-p` |
139-
| `--config [path]` | Path to `nest-cli` configuration file. <br/>Alias `-c` |
140-
| `--watch` | Run in watch mode (live-reload) <br/>Alias `-w` |
141-
| `--builder [name]` | Specify the builder to use for compilation (`tsc`, `swc`, or `webpack`). <br/>Alias `-b` |
142-
| `--preserveWatchOutput` | Keep outdated console output in watch mode instead of clearing the screen. (`tsc` watch mode only) |
143-
| `--watchAssets` | Run in watch mode (live-reload), watching non-TS files (assets). See [Assets](cli/monorepo#assets) for more details. |
144-
| `--debug [hostport]` | Run in debug mode (with --inspect flag) <br/>Alias `-d` |
145-
| `--webpack` | Use webpack for compilation. (deprecated: use `--builder webpack` instead) |
146-
| `--webpackPath` | Path to webpack configuration. |
147-
| `--tsc` | Force use `tsc` for compilation. |
148-
| `--exec [binary]` | Binary to run (default: `node`). <br/>Alias `-e` |
149-
| `-- [key=value]` | Command-line arguments that can be referenced with `process.argv`. |
140+
| Option | Description |
141+
| ----------------------- | ---------------------------------------------------------------------------------------------------------------------------------- |
142+
| `--path [path]` | Path to `tsconfig` file. <br/>Alias `-p` |
143+
| `--config [path]` | Path to `nest-cli` configuration file. <br/>Alias `-c` |
144+
| `--watch` | Run in watch mode (live-reload) <br/>Alias `-w` |
145+
| `--builder [name]` | Specify the builder to use for compilation (`tsc`, `swc`, or `webpack`). <br/>Alias `-b` |
146+
| `--preserveWatchOutput` | Keep outdated console output in watch mode instead of clearing the screen. (`tsc` watch mode only) |
147+
| `--watchAssets` | Run in watch mode (live-reload), watching non-TS files (assets). See [Assets](cli/monorepo#assets) for more details. |
148+
| `--debug [hostport]` | Run in debug mode (with --inspect flag) <br/>Alias `-d` |
149+
| `--webpack` | Use webpack for compilation. (deprecated: use `--builder webpack` instead) |
150+
| `--webpackPath` | Path to webpack configuration. |
151+
| `--tsc` | Force use `tsc` for compilation. |
152+
| `--exec [binary]` | Binary to run (default: `node`). <br/>Alias `-e` |
153+
| `--no-shell` | Do not spawn child processes within a shell (see node's `child_process.spawn()` method docs). |
154+
| `--env-file` | Loads environment variables from a file relative to the current directory, making them available to applications on `process.env`. |
155+
| `-- [key=value]` | Command-line arguments that can be referenced with `process.argv`. |
150156

151157
#### nest add
152158

@@ -180,7 +186,7 @@ $ nest info
180186
181187
[System Information]
182188
OS Version : macOS High Sierra
183-
NodeJS Version : v16.18.0
189+
NodeJS Version : v20.18.0
184190
[Nest Information]
185191
microservices version : 10.0.0
186192
websockets version : 10.0.0

0 commit comments

Comments
 (0)