You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/cli/overview.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,6 +38,8 @@ $ npm run start:dev
38
38
39
39
In your browser, open [http://localhost:3000](http://localhost:3000) to see the new application running. The app will automatically recompile and reload when you change any of the source files.
40
40
41
+
> info **Hint** We recommend using the [SWC builder](/recipes/swc) for faster builds (10x more performant than the default TypeScript compiler).
42
+
41
43
#### Project structure
42
44
43
45
When you run `nest new`, Nest generates a boilerplate application structure by creating a new folder and populating an initial set of files. You can continue working in this default structure, adding new components, as described throughout this documentation. We refer to the project structure generated by `nest new` as **standard mode**. Nest also supports an alternate structure for managing multiple projects and libraries called **monorepo mode**.
Copy file name to clipboardExpand all lines: content/cli/scripts.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ The `nest` command is an OS level binary (i.e., runs from the OS command line).
16
16
17
17
#### Build
18
18
19
-
`nest build` is a wrapper on top of the standard `tsc` compiler (for [standard projects](https://docs.nestjs.com/cli/overview#project-structure)) or the webpack bundler using the `ts-loader` (for [monorepos](https://docs.nestjs.com/cli/overview#project-structure)). It does not add any other compilation features or steps except for handling `tsconfig-paths` out of the box. The reason it exists is that most developers, especially when starting out with Nest, do not need to adjust compiler options (e.g., `tsconfig.json` file) which can sometimes be tricky.
19
+
`nest build` is a wrapper on top of the standard `tsc` compiler or `swc` compiler (for [standard projects](https://docs.nestjs.com/cli/overview#project-structure)) or the webpack bundler using the `ts-loader` (for [monorepos](https://docs.nestjs.com/cli/overview#project-structure)). It does not add any other compilation features or steps except for handling `tsconfig-paths` out of the box. The reason it exists is that most developers, especially when starting out with Nest, do not need to adjust compiler options (e.g., `tsconfig.json` file) which can sometimes be tricky.
20
20
21
21
See the [nest build](https://docs.nestjs.com/cli/usages#nest-build) documentation for more details.
|`--package-manager [package-manager]`| Specify package manager. Use `npm`, `yarn`, or `pnpm`. Package manager must be installed globally.<br/> Alias: `-p`|
35
-
|`--language [language]`| Specify programming language (`TS` or `JS`).<br/> Alias: `-l`|
36
-
|`--collection [collectionName]`| Specify schematics collection. Use package name of installed npm package containing schematic.<br/> Alias: `-c`|
|`--package-manager [package-manager]`| Specify package manager. Use `npm`, `yarn`, or `pnpm`. Package manager must be installed globally.<br/> Alias: `-p`|
35
+
|`--language [language]`| Specify programming language (`TS` or `JS`).<br/> Alias: `-l`|
36
+
|`--collection [collectionName]`| Specify schematics collection. Use package name of installed npm package containing schematic.<br/> Alias: `-c`|
37
37
|`--strict`| Start the project with the following TypeScript compiler flags enabled: `strictNullChecks`, `noImplicitAny`, `strictBindCallApply`, `forceConsistentCasingInFileNames`, `noFallthroughCasesInSwitch`|
|`--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. |
0 commit comments