1 | {
|
2 | "$schema": "http://json-schema.org/schema",
|
3 | "$id": "SchematicsNgRxContainer",
|
4 | "title": "NgRx Container Options Schema",
|
5 | "type": "object",
|
6 | "properties": {
|
7 | "path": {
|
8 | "type": "string",
|
9 | "format": "path",
|
10 | "description": "The path to create the component.",
|
11 | "visible": false,
|
12 | "$default": {
|
13 | "$source": "workingDirectory"
|
14 | }
|
15 | },
|
16 | "project": {
|
17 | "type": "string",
|
18 | "description": "The name of the project.",
|
19 | "aliases": ["p"]
|
20 | },
|
21 | "name": {
|
22 | "type": "string",
|
23 | "description": "The name of the component.",
|
24 | "$default": {
|
25 | "$source": "argv",
|
26 | "index": 0
|
27 | },
|
28 | "x-prompt": "What should be the name of the container component?"
|
29 | },
|
30 | "inlineStyle": {
|
31 | "description": "Specifies if the style will be in the ts file.",
|
32 | "type": "boolean",
|
33 | "alias": "s"
|
34 | },
|
35 | "inlineTemplate": {
|
36 | "description": "Specifies if the template will be in the ts file.",
|
37 | "type": "boolean",
|
38 | "alias": "t"
|
39 | },
|
40 | "viewEncapsulation": {
|
41 | "description": "Specifies the view encapsulation strategy.",
|
42 | "enum": ["Emulated", "Native", "None"],
|
43 | "type": "string",
|
44 | "alias": "v"
|
45 | },
|
46 | "changeDetection": {
|
47 | "description": "Specifies the change detection strategy.",
|
48 | "enum": ["Default", "OnPush"],
|
49 | "type": "string",
|
50 | "alias": "c"
|
51 | },
|
52 | "prefix": {
|
53 | "type": "string",
|
54 | "format": "html-selector",
|
55 | "description": "The prefix to apply to generated selectors.",
|
56 | "alias": "p"
|
57 | },
|
58 | "style": {
|
59 | "description": "The file extension or preprocessor to use for style files.",
|
60 | "type": "string"
|
61 | },
|
62 | "skipTests": {
|
63 | "type": "boolean",
|
64 | "description": "When true, does not create test files."
|
65 | },
|
66 | "flat": {
|
67 | "type": "boolean",
|
68 | "description": "Flag to indicate if a dir is created."
|
69 | },
|
70 | "skipImport": {
|
71 | "type": "boolean",
|
72 | "description": "Flag to skip the module import."
|
73 | },
|
74 | "selector": {
|
75 | "type": "string",
|
76 | "format": "html-selector",
|
77 | "description": "The selector to use for the component."
|
78 | },
|
79 | "module": {
|
80 | "type": "string",
|
81 | "description": "Allows specification of the declaring module.",
|
82 | "alias": "m"
|
83 | },
|
84 | "export": {
|
85 | "type": "boolean",
|
86 | "description": "Specifies if declaring module exports the component."
|
87 | },
|
88 | "state": {
|
89 | "type": "string",
|
90 | "description": "Specifies the path to the state exports."
|
91 | },
|
92 | "stateInterface": {
|
93 | "type": "string",
|
94 | "default": "State",
|
95 | "description": "Specifies the interface for the state."
|
96 | },
|
97 | "testDepth": {
|
98 | "description": "Specifies whether to create a unit test or an integration test.",
|
99 | "enum": ["unit", "integration"],
|
100 | "type": "string",
|
101 | "default": "integration"
|
102 | },
|
103 | "standalone": {
|
104 | "description": "Whether the generated component is standalone.",
|
105 | "type": "boolean"
|
106 | },
|
107 | "displayBlock": {
|
108 | "description": "Specifies if the style will contain :host { display: block; }.",
|
109 | "type": "boolean",
|
110 | "alias": "b"
|
111 | }
|
112 | },
|
113 | "required": []
|
114 | }
|