UNPKG

1.83 kBJSONView Raw
1{
2 "$schema": "http://json-schema.org/schema",
3 "$id": "SchematicsNgRxState",
4 "title": "NgRx State Management Options Schema",
5 "type": "object",
6 "properties": {
7 "name": {
8 "description": "The name of the state.",
9 "type": "string",
10 "$default": {
11 "$source": "argv",
12 "index": 0
13 },
14 "x-prompt": "What should be the name of the state?"
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 "flat": {
31 "type": "boolean",
32 "default": true,
33 "description": "Flag to indicate if a dir is created."
34 },
35 "skipTests": {
36 "type": "boolean",
37 "default": false,
38 "description": "When true, does not create test files."
39 },
40 "module": {
41 "type": "string",
42 "default": "",
43 "description": "Allows specification of the declaring module.",
44 "alias": "m",
45 "subtype": "filepath",
46 "x-prompt": "To which module (path) should the state be registered in?"
47 },
48 "statePath": {
49 "type": "string",
50 "default": "reducers"
51 },
52 "root": {
53 "type": "boolean",
54 "default": false,
55 "description": "Flag to setup the root state or feature state."
56 },
57 "stateInterface": {
58 "type": "string",
59 "default": "State",
60 "description": "Specifies the interface for the state.",
61 "alias": "si"
62 },
63 "minimal": {
64 "type": "boolean",
65 "default": false,
66 "description": "Setup root state management without registering initial reducers."
67 }
68 },
69 "required": []
70}