From 354b0b8711957848cc4fdb4f07e48e2bdfad9faa Mon Sep 17 00:00:00 2001 From: Felix Lemke Date: Sat, 29 Dec 2018 18:58:09 +0100 Subject: [PATCH] refactor(schematics): add project keys to schema Add missing project keys to schema.json for store, store-devtools and effects Line-break remove related to "lint-staged" Related to #1487 --- modules/effects/schematics/ng-add/schema.json | 9 +++++++-- modules/store-devtools/schematics/ng-add/schema.json | 12 ++++++++---- modules/store/schematics/ng-add/schema.json | 9 +++++++-- 3 files changed, 22 insertions(+), 8 deletions(-) diff --git a/modules/effects/schematics/ng-add/schema.json b/modules/effects/schematics/ng-add/schema.json index 5becb4469b..d2c946baed 100644 --- a/modules/effects/schematics/ng-add/schema.json +++ b/modules/effects/schematics/ng-add/schema.json @@ -12,8 +12,7 @@ "skipPackageJson": { "type": "boolean", "default": false, - "description": - "Do not add @ngrx/effects as dependency to package.json (e.g., --skipPackageJson)." + "description": "Do not add @ngrx/effects as dependency to package.json (e.g., --skipPackageJson)." }, "path": { "type": "string", @@ -21,6 +20,12 @@ "description": "The path to create the effect.", "visible": false }, + "project": { + "type": "string", + "description": "The name of the project.", + "visible": false, + "aliases": ["p"] + }, "flat": { "type": "boolean", "default": true, diff --git a/modules/store-devtools/schematics/ng-add/schema.json b/modules/store-devtools/schematics/ng-add/schema.json index 91f93cb406..d3462bea5d 100644 --- a/modules/store-devtools/schematics/ng-add/schema.json +++ b/modules/store-devtools/schematics/ng-add/schema.json @@ -7,8 +7,7 @@ "skipPackageJson": { "type": "boolean", "default": false, - "description": - "Do not add @ngrx/store as dependency to package.json (e.g., --skipPackageJson)." + "description": "Do not add @ngrx/store as dependency to package.json (e.g., --skipPackageJson)." }, "path": { "type": "string", @@ -16,6 +15,12 @@ "description": "The path to create the state.", "visible": false }, + "project": { + "type": "string", + "description": "The name of the project.", + "visible": false, + "aliases": ["p"] + }, "module": { "type": "string", "default": "app", @@ -26,8 +31,7 @@ "maxAge": { "type": "number", "default": 25, - "description": - "number (>1) | 0 - maximum allowed actions to be stored in the history tree. The oldest actions are removed once maxAge is reached. It's critical for performance. 0 is infinite. Default is 25 for performance reasons." + "description": "number (>1) | 0 - maximum allowed actions to be stored in the history tree. The oldest actions are removed once maxAge is reached. It's critical for performance. 0 is infinite. Default is 25 for performance reasons." } }, "required": [] diff --git a/modules/store/schematics/ng-add/schema.json b/modules/store/schematics/ng-add/schema.json index 7d1d125de0..3cff62e030 100644 --- a/modules/store/schematics/ng-add/schema.json +++ b/modules/store/schematics/ng-add/schema.json @@ -7,8 +7,7 @@ "skipPackageJson": { "type": "boolean", "default": false, - "description": - "Do not add @ngrx/store as dependency to package.json (e.g., --skipPackageJson)." + "description": "Do not add @ngrx/store as dependency to package.json (e.g., --skipPackageJson)." }, "path": { "type": "string", @@ -16,6 +15,12 @@ "description": "The path to create the state.", "visible": false }, + "project": { + "type": "string", + "description": "The name of the project.", + "visible": false, + "aliases": ["p"] + }, "module": { "type": "string", "default": "app",