1 | {
|
2 | "$schema": "http://json-schema.org/schema",
|
3 | "$id": "SchematicsNgRxAction",
|
4 | "title": "NgRx Action Options Schema",
|
5 | "type": "object",
|
6 | "properties": {
|
7 | "name": {
|
8 | "description": "The name of the action.",
|
9 | "type": "string",
|
10 | "$default": {
|
11 | "$source": "argv",
|
12 | "index": 0
|
13 | },
|
14 | "x-prompt": "What should be the name of the action?"
|
15 | },
|
16 | "prefix": {
|
17 | "description": "The prefix of the action.",
|
18 | "type": "string",
|
19 | "default": "load",
|
20 | "x-prompt": "What should be the prefix of the action?"
|
21 | },
|
22 | "path": {
|
23 | "type": "string",
|
24 | "format": "path",
|
25 | "description": "The path to create the component.",
|
26 | "visible": false,
|
27 | "$default": {
|
28 | "$source": "workingDirectory"
|
29 | }
|
30 | },
|
31 | "project": {
|
32 | "type": "string",
|
33 | "description": "The name of the project.",
|
34 | "aliases": ["p"]
|
35 | },
|
36 | "flat": {
|
37 | "type": "boolean",
|
38 | "default": true,
|
39 | "description": "Flag to indicate if a dir is created."
|
40 | },
|
41 | "group": {
|
42 | "type": "boolean",
|
43 | "default": false,
|
44 | "description": "Group actions file within 'actions' folder",
|
45 | "aliases": ["g"]
|
46 | },
|
47 | "api": {
|
48 | "type": "boolean",
|
49 | "default": false,
|
50 | "description": "Specifies if api success and failure actions should be generated.",
|
51 | "aliases": ["a"],
|
52 | "x-prompt": "Should we generate success and failure actions?"
|
53 | }
|
54 | },
|
55 | "required": []
|
56 | }
|