1 | {
|
2 | "$schema": "http://json-schema.org/schema",
|
3 | "$id": "SchematicsNgRxReducer",
|
4 | "title": "NgRx Reducer Options Schema",
|
5 | "type": "object",
|
6 | "properties": {
|
7 | "name": {
|
8 | "description": "The name of the reducer.",
|
9 | "type": "string",
|
10 | "$default": {
|
11 | "$source": "argv",
|
12 | "index": 0
|
13 | },
|
14 | "x-prompt": "What should be the name of the reducer?"
|
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 | "module": {
|
36 | "type": "string",
|
37 | "description": "Specifies the declaring module.",
|
38 | "aliases": ["m"]
|
39 | },
|
40 | "flat": {
|
41 | "type": "boolean",
|
42 | "default": true,
|
43 | "description": "Flag to indicate if a dir is created."
|
44 | },
|
45 | "feature": {
|
46 | "type": "boolean",
|
47 | "default": false,
|
48 | "description": "Flag to indicate if part of a feature schematic."
|
49 | },
|
50 | "reducers": {
|
51 | "type": "string",
|
52 | "description": "Specifies the reducers file.",
|
53 | "aliases": ["r"]
|
54 | },
|
55 | "group": {
|
56 | "type": "boolean",
|
57 | "default": false,
|
58 | "description": "Group reducer file within 'reducers' folder",
|
59 | "aliases": ["g"]
|
60 | },
|
61 | "api": {
|
62 | "type": "boolean",
|
63 | "default": false,
|
64 | "description": "Specifies if api success and failure actions should be added to the reducer",
|
65 | "aliases": ["a"],
|
66 | "x-prompt": "Should we add success and failure actions to the reducer?"
|
67 | }
|
68 | },
|
69 | "prefix": {
|
70 | "description": "The prefix of the reducer.",
|
71 | "type": "string",
|
72 | "default": "load",
|
73 | "x-prompt": "What should be the prefix of the reducer?"
|
74 | },
|
75 | "required": []
|
76 | }
|