1 | {
|
---|
2 | "$schema": "http://json-schema.org/draft-07/schema",
|
---|
3 | "$id": "SchematicsMaterialNavigation",
|
---|
4 | "title": "Material Navigation 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 | },
|
---|
13 | "project": {
|
---|
14 | "type": "string",
|
---|
15 | "description": "The name of the project.",
|
---|
16 | "$default": {
|
---|
17 | "$source": "projectName"
|
---|
18 | }
|
---|
19 | },
|
---|
20 | "name": {
|
---|
21 | "type": "string",
|
---|
22 | "description": "The name of the component.",
|
---|
23 | "$default": {
|
---|
24 | "$source": "argv",
|
---|
25 | "index": 0
|
---|
26 | },
|
---|
27 | "x-prompt": "What should be the name of the component?"
|
---|
28 | },
|
---|
29 | "inlineStyle": {
|
---|
30 | "description": "Specifies if the style will be in the ts file.",
|
---|
31 | "type": "boolean",
|
---|
32 | "alias": "s"
|
---|
33 | },
|
---|
34 | "inlineTemplate": {
|
---|
35 | "description": "Specifies if the template will be in the ts file.",
|
---|
36 | "type": "boolean",
|
---|
37 | "alias": "t"
|
---|
38 | },
|
---|
39 | "viewEncapsulation": {
|
---|
40 | "description": "Specifies the view encapsulation strategy.",
|
---|
41 | "enum": ["Emulated", "None"],
|
---|
42 | "type": "string",
|
---|
43 | "alias": "v"
|
---|
44 | },
|
---|
45 | "changeDetection": {
|
---|
46 | "description": "Specifies the change detection strategy.",
|
---|
47 | "enum": ["Default", "OnPush"],
|
---|
48 | "type": "string",
|
---|
49 | "default": "Default",
|
---|
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 to be used for style files.",
|
---|
60 | "type": "string"
|
---|
61 | },
|
---|
62 | "skipTests": {
|
---|
63 | "type": "boolean",
|
---|
64 | "description": "When true, does not generate a test file."
|
---|
65 | },
|
---|
66 | "flat": {
|
---|
67 | "type": "boolean",
|
---|
68 | "description": "Flag to indicate if a dir is created.",
|
---|
69 | "default": false
|
---|
70 | },
|
---|
71 | "skipImport": {
|
---|
72 | "type": "boolean",
|
---|
73 | "description": "Flag to skip the module import.",
|
---|
74 | "default": false
|
---|
75 | },
|
---|
76 | "selector": {
|
---|
77 | "type": "string",
|
---|
78 | "format": "html-selector",
|
---|
79 | "description": "The selector to use for the component."
|
---|
80 | },
|
---|
81 | "module": {
|
---|
82 | "type": "string",
|
---|
83 | "description": "Allows specification of the declaring module.",
|
---|
84 | "alias": "m"
|
---|
85 | },
|
---|
86 | "export": {
|
---|
87 | "type": "boolean",
|
---|
88 | "default": false,
|
---|
89 | "description": "Specifies if declaring module exports the component."
|
---|
90 | },
|
---|
91 | "routing": {
|
---|
92 | "type": "boolean",
|
---|
93 | "default": false,
|
---|
94 | "description": "Specifies whether Angular routing is enabled. This controls whether anchor elements use href or routerLink"
|
---|
95 | }
|
---|
96 | },
|
---|
97 | "required": ["name"]
|
---|
98 | }
|
---|