-
Notifications
You must be signed in to change notification settings - Fork 47
Expand file tree
/
Copy pathshopware-project-schema.json
More file actions
478 lines (478 loc) · 13.3 KB
/
shopware-project-schema.json
File metadata and controls
478 lines (478 loc) · 13.3 KB
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
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://github.com/shopware/shopware-cli/internal/shop/config",
"$ref": "#/$defs/Config",
"$defs": {
"Config": {
"properties": {
"include": {
"items": {
"type": "string"
},
"type": "array"
},
"url": {
"type": "string",
"description": "The URL of the Shopware instance"
},
"compatibility_date": {
"type": "string",
"format": "date",
"description": "Controls date-based compatibility behavior, formatted as YYYY-MM-DD."
},
"build": {
"$ref": "#/$defs/ConfigBuild"
},
"admin_api": {
"$ref": "#/$defs/ConfigAdminApi"
},
"dump": {
"$ref": "#/$defs/ConfigDump"
},
"deployment": {
"$ref": "#/$defs/ConfigDeployment"
},
"validation": {
"$ref": "#/$defs/ConfigValidation"
},
"image_proxy": {
"$ref": "#/$defs/ConfigImageProxy"
},
"disable_composer_scripts": {
"type": "boolean",
"description": "When enabled, composer scripts will be disabled during CI builds"
},
"disable_composer_install": {
"type": "boolean",
"description": "When enabled, composer install will be skipped during CI builds"
}
},
"additionalProperties": false,
"type": "object"
},
"ConfigAdminApi": {
"properties": {
"client_id": {
"type": "string",
"description": "Client ID of integration"
},
"client_secret": {
"type": "string",
"description": "Client Secret of integration"
},
"username": {
"type": "string",
"description": "Username of admin user"
},
"password": {
"type": "string",
"description": "Password of admin user"
},
"disable_ssl_check": {
"type": "boolean",
"description": "Disable SSL certificate check"
}
},
"additionalProperties": false,
"type": "object"
},
"ConfigBuild": {
"properties": {
"disable_asset_copy": {
"type": "boolean",
"description": "When enabled, the assets will not be copied to the public folder"
},
"remove_extension_assets": {
"type": "boolean",
"description": "When enabled, the assets of extensions will be removed from the extension public folder. (Requires Shopware 6.5.2.0)"
},
"keep_extension_source": {
"type": "boolean",
"description": "When enabled, the extensions source code will be keep in the final build"
},
"keep_source_maps": {
"type": "boolean",
"description": "When enabled, the source maps will not be removed from the final build"
},
"cleanup_paths": {
"items": {
"type": "string"
},
"type": "array",
"description": "Paths to delete for the final build"
},
"browserslist": {
"type": "string",
"description": "Browserslist configuration for the Storefront build"
},
"exclude_extensions": {
"items": {
"type": "string"
},
"type": "array",
"description": "Extensions to exclude from the build"
},
"disable_storefront_build": {
"type": "boolean",
"description": "When enabled, the storefront build will be skipped"
},
"force_extension_build": {
"items": {
"$ref": "#/$defs/ConfigBuildExtension"
},
"type": "array",
"description": "Extensions to force build for, even if they have compiled files"
},
"force_admin_build": {
"type": "boolean",
"description": "When enabled, the shopware admin will be built"
},
"keep_node_modules": {
"items": {
"type": "string"
},
"type": "array",
"description": "Keep following node_modules in the final build"
},
"mjml": {
"$ref": "#/$defs/ConfigBuildMJML",
"description": "MJML email template compilation configuration"
},
"asset_caching": {
"type": "boolean",
"description": "When enabled, built assets are cached locally and restored on subsequent builds when sources haven't changed"
},
"hooks": {
"$ref": "#/$defs/ConfigBuildHooks",
"description": "Hooks to run at specific points during CI builds"
},
"bundles": {
"items": {
"$ref": "#/$defs/ConfigProjectBundle"
},
"type": "array",
"description": "Shopware bundles to include in builds (alternative to composer.json extra.shopware-bundles)"
}
},
"additionalProperties": false,
"type": "object"
},
"ConfigBuildExtension": {
"properties": {
"name": {
"type": "string",
"description": "Name of the extension"
}
},
"additionalProperties": false,
"type": "object",
"required": [
"name"
],
"description": "ConfigBuildExtension defines the configuration for forcing extension builds."
},
"ConfigBuildHooks": {
"properties": {
"pre": {
"items": {
"type": "string"
},
"type": "array",
"description": "Commands to run before anything runs"
},
"post": {
"items": {
"type": "string"
},
"type": "array",
"description": "Commands to run after everything completes"
},
"pre-composer": {
"items": {
"type": "string"
},
"type": "array",
"description": "Commands to run before composer install"
},
"post-composer": {
"items": {
"type": "string"
},
"type": "array",
"description": "Commands to run after composer install"
},
"pre-assets": {
"items": {
"type": "string"
},
"type": "array",
"description": "Commands to run before asset build"
},
"post-assets": {
"items": {
"type": "string"
},
"type": "array",
"description": "Commands to run after asset build"
}
},
"additionalProperties": false,
"type": "object",
"description": "ConfigBuildHooks defines hooks to run at specific points during CI builds."
},
"ConfigBuildMJML": {
"properties": {
"enabled": {
"type": "boolean",
"description": "Whether to enable MJML compilation"
},
"search_paths": {
"items": {
"type": "string"
},
"type": "array",
"description": "Directories to search for MJML files"
}
},
"additionalProperties": false,
"type": "object",
"description": "ConfigBuildMJML defines the configuration for MJML email template compilation."
},
"ConfigDeployment": {
"properties": {
"hooks": {
"properties": {
"pre": {
"type": "string"
},
"post": {
"type": "string"
},
"pre-install": {
"type": "string"
},
"post-install": {
"type": "string"
},
"pre-update": {
"type": "string"
},
"post-update": {
"type": "string"
}
},
"additionalProperties": false,
"type": "object"
},
"store": {
"properties": {
"license-domain": {
"type": "string"
}
},
"additionalProperties": false,
"type": "object"
},
"cache": {
"properties": {
"always_clear": {
"type": "boolean"
}
},
"additionalProperties": false,
"type": "object"
},
"extension-management": {
"properties": {
"enabled": {
"type": "boolean"
},
"exclude": {
"items": {
"type": "string"
},
"type": "array"
},
"overrides": {
"$ref": "#/$defs/ConfigDeploymentOverrides"
},
"force_updates": {
"items": {
"type": "string"
},
"type": "array"
},
"force-update": {
"items": {
"type": "string"
},
"type": "array"
}
},
"additionalProperties": false,
"type": "object",
"description": "The extension management of the deployment"
},
"one-time-tasks": {
"items": {
"properties": {
"id": {
"type": "string"
},
"script": {
"type": "string"
}
},
"additionalProperties": false,
"type": "object",
"required": [
"id",
"script"
]
},
"type": "array"
}
},
"additionalProperties": false,
"type": "object"
},
"ConfigDeploymentOverrides": {
"additionalProperties": {
"properties": {
"state": {
"type": "string",
"enum": [
"inactive",
"remove",
"ignore",
"installed"
]
},
"keepUserData": {
"type": "boolean"
}
},
"type": "object",
"required": [
"state"
]
},
"type": "object",
"title": "Extension overrides"
},
"ConfigDump": {
"properties": {
"rewrite": {
"additionalProperties": {
"additionalProperties": {
"type": "string"
},
"type": "object"
},
"type": "object",
"description": "Allows to rewrite single columns, perfect for GDPR compliance"
},
"nodata": {
"items": {
"type": "string"
},
"type": "array",
"description": "Only export the schema of these tables"
},
"ignore": {
"items": {
"type": "string"
},
"type": "array",
"description": "Ignore these tables from export"
},
"where": {
"additionalProperties": {
"type": "string"
},
"type": "object",
"description": "Add an where condition to that table, schema is table name as key, and where statement as value"
}
},
"additionalProperties": false,
"type": "object"
},
"ConfigImageProxy": {
"properties": {
"url": {
"type": "string",
"description": "The URL of the upstream server to proxy requests to when files are not found locally"
}
},
"additionalProperties": false,
"type": "object"
},
"ConfigProjectBundle": {
"properties": {
"path": {
"type": "string",
"description": "Relative path from project root to the bundle directory"
},
"name": {
"type": "string",
"description": "Optional override for the bundle name; defaults to the directory basename"
}
},
"additionalProperties": false,
"type": "object",
"required": [
"path"
],
"description": "ConfigProjectBundle defines a project-level Shopware bundle."
},
"ConfigValidation": {
"properties": {
"ignore": {
"items": {
"$ref": "#/$defs/ConfigValidationIgnoreItem"
},
"type": "array",
"description": "Ignore items from the validation."
},
"ignore_extensions": {
"items": {
"$ref": "#/$defs/ConfigValidationIgnoreExtension"
},
"type": "array"
}
},
"additionalProperties": false,
"type": "object",
"description": "ConfigValidation is used to configure the project validation."
},
"ConfigValidationIgnoreExtension": {
"properties": {
"name": {
"type": "string",
"description": "The name of the extension to ignore."
}
},
"additionalProperties": false,
"type": "object"
},
"ConfigValidationIgnoreItem": {
"properties": {
"identifier": {
"type": "string",
"description": "The identifier of the item to ignore."
},
"path": {
"type": "string",
"description": "The path of the item to ignore."
},
"message": {
"type": "string",
"description": "The message of the item to ignore."
}
},
"additionalProperties": false,
"type": "object",
"description": "ConfigValidationIgnoreItem is used to ignore items from the validation."
}
}
}