Skip to content

Commit eed36b3

Browse files
alan-agius4wagnermaciel
authored andcommitted
fix(material/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 3501881)
1 parent cf24b70 commit eed36b3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/material/schematics/collection.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,15 @@
55
"description": "Adds Angular Material to the application without affecting any templates",
66
"factory": "./ng-add/index",
77
"schema": "./ng-add/schema.json",
8-
"aliases": ["material-shell", "install"]
8+
"aliases": ["material-shell", "install"],
9+
"hidden": true
910
},
1011
"ng-add-setup-project": {
1112
"description": "Sets up the specified project after the ng-add dependencies have been installed.",
1213
"private": true,
1314
"factory": "./ng-add/setup-project",
14-
"schema": "./ng-add/schema.json"
15+
"schema": "./ng-add/schema.json",
16+
"hidden": true
1517
},
1618
"dashboard": {
1719
"description": "Create a card-based dashboard component",

0 commit comments

Comments
 (0)