Skip to content

Commit

Permalink
refactor(schematics): add project keys to schema (#1494)
Browse files Browse the repository at this point in the history
Related to #1487
  • Loading branch information
ngfelixl authored and brandonroberts committed Dec 31, 2018
1 parent 9da4aac commit 6b73060
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 9 deletions.
9 changes: 7 additions & 2 deletions modules/effects/schematics/ng-add/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -31,6 +30,12 @@
"default": true,
"description": "Specifies if a spec file is generated."
},
"project": {
"type": "string",
"description": "The name of the project.",
"visible": false,
"aliases": ["p"]
},
"module": {
"type": "string",
"default": "app",
Expand Down
2 changes: 1 addition & 1 deletion modules/effects/schematics/ng-add/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ export interface Schema {
name: string;
skipPackageJson?: boolean;
path?: string;
project?: string;
flat?: boolean;
spec?: boolean;
project?: string;
module?: string;
group?: boolean;
}
12 changes: 8 additions & 4 deletions modules/store-devtools/schematics/ng-add/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,20 @@
"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",
"format": "path",
"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",
Expand All @@ -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": []
Expand Down
9 changes: 7 additions & 2 deletions modules/store/schematics/ng-add/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,20 @@
"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",
"format": "path",
"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",
Expand Down

0 comments on commit 6b73060

Please sign in to comment.