1 | {
|
2 | "$schema": "http://json-schema.org/schema",
|
3 | "$id": "SchematicsNgRxEntity",
|
4 | "title": "NgRx Entity Options Schema",
|
5 | "type": "object",
|
6 | "properties": {
|
7 | "name": {
|
8 | "description": "The name of the entity.",
|
9 | "type": "string",
|
10 | "$default": {
|
11 | "$source": "argv",
|
12 | "index": 0
|
13 | },
|
14 | "x-prompt": "What should be the name of the entity?"
|
15 | },
|
16 | "path": {
|
17 | "type": "string",
|
18 | "format": "path",
|
19 | "description": "The path to create the component.",
|
20 | "visible": false,
|
21 | "$default": {
|
22 | "$source": "workingDirectory"
|
23 | }
|
24 | },
|
25 | "project": {
|
26 | "type": "string",
|
27 | "description": "The name of the project.",
|
28 | "aliases": ["p"]
|
29 | },
|
30 | "skipTests": {
|
31 | "type": "boolean",
|
32 | "description": "When true, does not create test files.",
|
33 | "default": false
|
34 | },
|
35 | "reducers": {
|
36 | "type": "string",
|
37 | "description": "Specifies the reducers file.",
|
38 | "aliases": ["r"]
|
39 | },
|
40 | "module": {
|
41 | "type": "string",
|
42 | "description": "Specifies the declaring module.",
|
43 | "aliases": ["m"]
|
44 | },
|
45 | "flat": {
|
46 | "type": "boolean",
|
47 | "default": true,
|
48 | "description": "Flag to indicate if a dir is created."
|
49 | },
|
50 | "group": {
|
51 | "type": "boolean",
|
52 | "default": false,
|
53 | "description": "Group actions, reducers and effects within relative subfolders",
|
54 | "aliases": ["g"]
|
55 | },
|
56 | "feature": {
|
57 | "type": "boolean",
|
58 | "default": false,
|
59 | "description": "Flag to indicate if part of a feature schematic.",
|
60 | "visible": false
|
61 | }
|
62 | },
|
63 | "required": []
|
64 | }
|