From cf24b704d46d2122d543331a405b6337b5765252 Mon Sep 17 00:00:00 2001 From: Alan Agius Date: Thu, 17 Mar 2022 11:06:08 +0100 Subject: [PATCH] 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 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 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 fb03164b3fad76c3873074d0bfea9ae335605c38) --- src/cdk/schematics/collection.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cdk/schematics/collection.json b/src/cdk/schematics/collection.json index 6786d0c04016..5897de080091 100644 --- a/src/cdk/schematics/collection.json +++ b/src/cdk/schematics/collection.json @@ -5,7 +5,8 @@ "description": "Installs the Angular CDK", "factory": "./ng-add/index", "schema": "./ng-add/schema.json", - "aliases": ["install"] + "aliases": ["install"], + "hidden": true }, "drag-drop": { "description": "Generates a component using the Drag and Drop module",