-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Commit cf24b70
fix(cdk/schematics): mark
These schematics are meant to be used with `ng-add` and shouldn't be made visibily. By setting these schematics hidden we don't shown them in the `ng generate` help output.
Now
```
ng generate
Generates and/or modifies files based on a schematic.
Commands:
ng g <schematic> Run the provided schematic. [default]
ng g address-form [name] [aliases: address-form, material-address-form, material-addressForm]
ng g dashboard [name] [aliases: material-dashboard]
ng g navigation [name] [aliases: material-nav, materialNav, nav]
ng g ng-add [aliases: material-shell, install]
ng g table [name] [aliases: material-table]
ng g tree [name] [aliases: material-tree]
Arguments:
schematic The [collection:schematic] to run. [string]
Options:
--help Shows a help message for this command in the console. [boolean]
--interactive Enable interactive input prompts. [boolean] [default: true]
--dry-run Run through and reports activity without writing out results. [boolean] [default: false]
--defaults Disable interactive input prompts for options with a default. [boolean] [default: false]
--force Force overwriting of existing files. [boolean] [default: false]
```
After
```
ng generate
Generates and/or modifies files based on a schematic.
Commands:
ng g <schematic> Run the provided schematic. [default]
ng g address-form [name] [aliases: address-form, material-address-form, material-addressForm]
ng g dashboard [name] [aliases: material-dashboard]
ng g navigation [name] [aliases: material-nav, materialNav, nav]
ng g table [name] [aliases: material-table]
ng g tree [name] [aliases: material-tree]
Arguments:
schematic The [collection:schematic] to run. [string]
Options:
--help Shows a help message for this command in the console. [boolean]
--interactive Enable interactive input prompts. [boolean] [default: true]
--dry-run Run through and reports activity without writing out results. [boolean] [default: false]
--defaults Disable interactive input prompts for options with a default. [boolean] [default: false]
--force Force overwriting of existing files. [boolean] [default: false]
```
(cherry picked from commit fb03164)ng-add
schematics as hidden1 parent 5e5b296 commit cf24b70Copy full SHA for cf24b70
1 file changed
+2
-1
lines changedsrc/cdk/schematics/collection.json
Copy file name to clipboardExpand all lines: src/cdk/schematics/collection.json+2-1Lines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5 | 5 |
| |
6 | 6 |
| |
7 | 7 |
| |
8 |
| - | |
| 8 | + | |
| 9 | + | |
9 | 10 |
| |
10 | 11 |
| |
11 | 12 |
| |
|
0 commit comments