Skip to content

Commit ecd044b

Browse files
author
Peter Smith
committed
feat(feature): ngrx schema
1 parent 2624963 commit ecd044b

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

libs/ddd/src/schematics/feature/schema.json

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,15 @@
4141
},
4242
"type": {
4343
"type": "string",
44-
"enum": [
45-
"internal",
46-
"buildable",
47-
"publishable"
48-
],
44+
"enum": ["internal", "buildable", "publishable"],
4945
"description": "A type to determine if and how to build the library.",
5046
"default": "buildable"
47+
},
48+
"ngrx": {
49+
"type": "boolean",
50+
"default": false,
51+
"description": "Add ngrx for the domain (entity required)",
52+
"x-prompt": "Would you like to add NgRx to your domain?"
5153
}
5254
},
5355
"required": ["name", "domain"]

libs/ddd/src/schematics/feature/schema.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,9 @@ export interface FeatureOptions {
3434
* A type to determine if and how to build the library.
3535
*/
3636
type?: "internal" | "buildable" | "publishable";
37+
/**
38+
* Add ngrx for the domain (entity required)
39+
*/
40+
ngrx?: boolean;
3741
[k: string]: any;
3842
}

0 commit comments

Comments
 (0)