Skip to content

Commit cf24b70

Browse files
alan-agius4wagnermaciel
authored andcommitted
fix(cdk/schematics): mark ng-add schematics as hidden
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)
1 parent 5e5b296 commit cf24b70

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/cdk/schematics/collection.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"description": "Installs the Angular CDK",
66
"factory": "./ng-add/index",
77
"schema": "./ng-add/schema.json",
8-
"aliases": ["install"]
8+
"aliases": ["install"],
9+
"hidden": true
910
},
1011
"drag-drop": {
1112
"description": "Generates a component using the Drag and Drop module",

0 commit comments

Comments
 (0)