diff --git a/content/cli/usages.md b/content/cli/usages.md index d46934444d..437b33824f 100644 --- a/content/cli/usages.md +++ b/content/cli/usages.md @@ -27,7 +27,7 @@ Creates and initializes a new Nest project. Prompts for package manager. ##### Options | Option | Description | -| ------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +|---------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | `--dry-run` | Reports changes that would be made, but does not change the filesystem.
Alias: `-d` | | `--skip-git` | Skip git repository initialization.
Alias: `-g` | | `--skip-install` | Skip package installation.
Alias: `-s` | @@ -35,6 +35,7 @@ Creates and initializes a new Nest project. Prompts for package manager. | `--language [language]` | Specify programming language (`TS` or `JS`).
Alias: `-l` | | `--collection [collectionName]` | Specify schematics collection. Use package name of installed npm package containing schematic.
Alias: `-c` | | `--strict` | Start the project with the following TypeScript compiler flags enabled: `strictNullChecks`, `noImplicitAny`, `strictBindCallApply`, `forceConsistentCasingInFileNames`, `noFallthroughCasesInSwitch` | +| `--caseNaming [caseType]` | Set a preferred case convention, options are: `camel`, `kebab`, `snake`, `pascal`, `kebab-or-snake` | #### nest generate diff --git a/content/cli/workspaces.md b/content/cli/workspaces.md index e7afffa748..933d93566c 100644 --- a/content/cli/workspaces.md +++ b/content/cli/workspaces.md @@ -200,8 +200,9 @@ These properties specify the compiler to use as well as various options that aff These properties specify the default generate options to be used by the `nest generate` command. | Property Name | Property Value Type | Description | -| ------------- | ------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +|---------------|---------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | `spec` | boolean _or_ object | If the value is boolean, a value of `true` enables `spec` generation by default and a value of `false` disables it. A flag passed on the CLI command line overrides this setting, as does a project-specific `generateOptions` setting (more below). If the value is an object, each key represents a schematic name, and the boolean value determines whether the default spec generation is enabled / disabled for that specific schematic. | +| `caseNaming` | CaseType | Determines the case naming convention for newly generated files / variables. Default is `kebab`, options are `camel`, `kebab`, `snake`, `pascal`, `kebab-or-snake`. | | `flat` | boolean | If true, all generate commands will generate a flat structure | The following example uses a boolean value to specify that spec file generation should be disabled by default for all projects: