This repository was archived by the owner on Dec 8, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathskyuxconfig-schema.json
286 lines (286 loc) · 9.2 KB
/
skyuxconfig-schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "JSON schema for SKY UX CLI skyuxconfig.json",
"definitions": {
"externalFileCSS": {
"type": "object",
"properties": {
"url": {
"description": "Fully qualified URL of the file.",
"type": "string"
},
"integrity": {
"description": "Subresource integrity string to include.",
"type": "string"
}
}
},
"externalFileJS": {
"allOf":[
{
"$ref": "#/definitions/externalFileCSS"
},
{
"properties": {
"head": {
"description": "Inject in the head versus before the closing body tag.",
"type": "boolean"
}
}
}
]
}
},
"properties": {
"a11y": {
"description": "Enables or disables accessibility test rules. You can manage rules individually, or you can enable or disable all rules in bulk.",
"type": [
"object",
"boolean"
],
"properties": {
"rules": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"app": {
"description": "Specifies configuration options for the local app when running skyux serve",
"type": "object",
"properties": {
"title": {
"description": "Controls the page title at the template level while waiting for the application to load.",
"type": "string"
},
"port": {
"description": "Configures a port for the skyux serve command to use. If no port is specified, skyux serve dynamically finds an available port.",
"type": "string"
},
"externals": {
"description": "Dynamically injects CSS and JavaScript files into SKY UX Host. You should have a specific use-case for an externals and they must be white-listed by the SKY UX team.",
"type": "object",
"properties": {
"css": {
"description": "CSS files to inject",
"type": "object",
"properties": {
"before": {
"description": "CSS files to inject before default SKY UX files.",
"type": "array",
"items": {
"$ref": "#/definitions/externalFileCSS"
}
},
"after": {
"description": "CSS files to inject after default SKY UX files.",
"type": "array",
"items": {
"$ref": "#/definitions/externalFileCSS"
}
}
}
},
"js": {
"description": "JS files to inject",
"type": "object",
"properties": {
"before": {
"description": "JS files to inject before default SKY UX files.",
"type": "array",
"items": {
"$ref": "#/definitions/externalFileJS"
}
},
"after": {
"description": "JS files to inject before default SKY UX files.",
"type": "array",
"items": {
"$ref": "#/definitions/externalFileJS"
}
}
}
}
}
}
}
},
"appSettings": {
"description": "Specifies data that is available for reuse throughout the application.",
"type": "object"
},
"auth": {
"description": "Indicates whether the application requires an authenticated Blackbaud ID",
"type": "boolean"
},
"codeCoverageThreshold": {
"description": "Specifies the minimum required code coverage threshold.",
"type": "string",
"enum": [
"none",
"standard",
"strict"
]
},
"compileMode": {
"description": "Specifies how to compile the project's code.",
"type": "string",
"enum": [
"aot",
"jit"
],
"default": "aot"
},
"cssPath": {
"description": "Specifies a path to reference CSS styles. This property is specific to the SKY UX docs site and is for internal Blackbaud use only.",
"type": "string"
},
"help": {
"description": " Indicates whether to automatically include the help widget in the application to identify the current page and display relevant help content. This property is for internal Blackbaud use only.",
"type": [
"boolean",
"object"
]
},
"host": {
"description": "Specifies configuration options for communication with SKY UX Host.",
"type": "object",
"properties": {
"url": {
"description": "Specifies a base URL to pass information from skyux serve to the SKY UX Host.",
"type": "string",
"default": "https://host.nxt.blackbaud.com"
}
}
},
"importPath": {
"description": "Specifies a path to reference SKY UX components in Angular. This property is specific to the SKY UX docs site and is for internal Blackbaud use only.",
"type": "string"
},
"mode": {
"description": "Controls how much boilerplate code to generate automatically.",
"type": "string",
"enum": [
"easy",
"advanced"
],
"default": "easy"
},
"name": {
"description": "Specifies the name of the project when running in SKY UX Host. By default, SKY UX Builder uses the name property in the package.json file, minus the 'blackbaud-skyux-spa-' prefix.",
"type": "string"
},
"omnibar": {
"description": "Specifies an object to pass to the omnibar's load method. This property is for internal Blackbaud use only.",
"type": "object",
"properties": {
"experimental": {
"description": "Whether to display the new 'experimental' Omnibar or the traditional one.",
"type": "boolean"
}
}
},
"pacts": {
"description": "PACTS",
"type": "array"
},
"params": {
"description": "Specifies a list of parameters that are allowed at runtime.",
"type": [
"array",
"object"
],
"items": {
"type": "string"
},
"patternProperties": {
"^.*$": {
"type": [
"boolean",
"object"
],
"properties": {
"required": {
"description": "Indicates the parameter must be supplied to the application in order to function.",
"type": "boolean"
},
"value": {
"description": "The default value of the parameter. This value may be overridden at runtime by the query string or other future sources of parameter values."
},
"excludeFromRequests": {
"description": "Indicates whether the parameter should be excluded from the parameters automatically added to the query string of URLs requested with SkyAuthHttp.",
"type": "boolean",
"default": true
}
}
}
}
},
"plugins": {
"description": "Specifies plugins to expand on existing SKY UX Builder functionality and create new functionality.",
"type": "array"
},
"redirects": {
"description": "Specifies redirects for pages within an application using from : to pattern.",
"type": "object"
},
"routes": {
"description": "Allows you to use the omnibar but still define navigation items. This property is for internal Blackbaud use only.",
"type": "object",
"properties": {
"public": {
"description": "Public routes.",
"type": "array"
},
"referenced": {
"description": "Referenced routes.",
"type": "array"
}
}
},
"useHashRouting": {
"description": "Allows your SPA to use Angular's hash location strategy.",
"type": "boolean"
},
"skyuxModules": {
"description": "The individual SKY UX modules that should be imported into the application. Use this property for performance optimization when your application only uses a small subset of SKY UX components.",
"type": "array"
},
"testSettings": {
"description": "Container for controlling test settings.",
"type": "object",
"properties": {
"e2e": {
"description": "Test settings specific to the skyux e2e command.",
"type": "object",
"properties": {
"browserSet": {
"description": "The named set of browsers to run against.",
"type": "string",
"enum": [
"speedy"
]
}
}
},
"unit": {
"description": "Test settings specific to the skyux test command.",
"type": "object",
"properties": {
"browserSet": {
"description": "The named set of browsers to run against.",
"type": "string",
"enum": [
"speedy",
"quirky",
"paranoid"
]
}
}
}
}
}
}
}