forked from shopware/shopware
-
Notifications
You must be signed in to change notification settings - Fork 1
/
composer.json
503 lines (503 loc) · 22 KB
/
composer.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
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
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
{
"name": "shopware/platform",
"description": "The Shopware e-commerce core",
"type": "library",
"keywords": [
"framework",
"shopware"
],
"homepage": "https://www.shopware.com",
"license": "MIT",
"replace": {
"shopware/core": "self.version",
"shopware/storefront": "self.version",
"shopware/administration": "self.version",
"shopware/elasticsearch": "self.version",
"symfony/polyfill-ctype": "*",
"symfony/polyfill-iconv": "*",
"symfony/polyfill-php72": "*",
"symfony/polyfill-php73": "*",
"symfony/polyfill-php74": "*",
"symfony/polyfill-php80": "*",
"symfony/polyfill-php81": "*",
"symfony/polyfill-php82": "*"
},
"support": {
"issues": "https://github.com/shopware/shopware/issues",
"forum": "https://forum.shopware.com",
"wiki": "https://developer.shopware.com",
"docs": "https://developer.shopware.com",
"chat": "https://slack.shopware.com"
},
"extra": {
"bamarni-bin": {
"bin-links": false,
"forward-command": false
},
"branch-alias": {
"dev-master": "6.6.x-dev",
"dev-trunk": "6.6.x-dev"
}
},
"config": {
"audit": {
"abandoned": "report"
},
"sort-packages": true,
"process-timeout": 7200,
"allow-plugins": {
"bamarni/composer-bin-plugin": true,
"composer/package-versions-deprecated": true,
"phpstan/extension-installer": true,
"cweagans/composer-patches": true,
"symfony/runtime": true
}
},
"require": {
"php": "~8.2.0 || ~8.3.0",
"ext-curl": "*",
"ext-dom": "*",
"ext-fileinfo": "*",
"ext-gd": "*",
"ext-intl": "*",
"ext-json": "*",
"ext-mbstring": "*",
"ext-openssl": "*",
"ext-pdo": "*",
"ext-pdo_mysql": "*",
"ext-session": "*",
"ext-simplexml": "*",
"ext-sodium": "*",
"ext-xml": "*",
"ext-zip": "*",
"ext-zlib": "*",
"composer-runtime-api": "^2.1",
"async-aws/core": "^1.22",
"cocur/slugify": "^4.3.0",
"composer/composer": "^2.8.0",
"composer/semver": "^3.4.0",
"doctrine/dbal": "^3.9",
"doctrine/inflector": "^2.0",
"dompdf/dompdf": "2.0.4",
"dragonmantank/cron-expression": "^3.3",
"erusev/parsedown-extra": "^0.8.1",
"ezyang/htmlpurifier": "^4.16",
"guzzlehttp/guzzle": "^7.5.0",
"guzzlehttp/psr7": "^2.4",
"lcobucci/clock": "^3.1.0",
"lcobucci/jwt": "^5.0",
"league/flysystem": "^3.10.3",
"league/flysystem-memory": "^3.10.3",
"league/mime-type-detection": "^1.13.0",
"league/oauth2-server": "^8.5",
"meyfa/php-svg": "^0.14.0",
"monolog/monolog": "^3.3.1",
"nyholm/psr7": "^1.5",
"opensearch-project/opensearch-php": "^2.3.1",
"padaliyajay/php-autoprefixer": "^1.4",
"pentatrion/vite-bundle": "^7.0",
"psr/cache": "^3.0.0",
"psr/event-dispatcher": "^1.0.0",
"psr/http-factory": "^1.0.1",
"psr/http-message": "^1.1 || ^2.0",
"psr/log": "^3.0.0",
"ramsey/uuid": "^4.7",
"scssphp/scssphp": "v1.12.0",
"setasign/fpdi": "^2.3.7",
"setasign/tfpdf": "^1.33",
"shopware/conflicts": ">=0.2.0",
"shyim/opensearch-php-dsl": "^1.0.5",
"squirrelphp/twig-php-syntax": "^1.8.0",
"symfony/asset": "~7.2.0",
"symfony/cache": "~7.2.0",
"symfony/cache-contracts": "~3.5.0",
"symfony/clock": "~7.2.0",
"symfony/config": "~7.2.0",
"symfony/console": "~7.2.0",
"symfony/debug-bundle": "~7.2.0",
"symfony/dependency-injection": "~7.2.0",
"symfony/deprecation-contracts": "~3.5.0",
"symfony/doctrine-messenger": "~7.2.0",
"symfony/dotenv": "~7.2.0",
"symfony/error-handler": "~7.2.0",
"symfony/event-dispatcher": "~7.2.0",
"symfony/event-dispatcher-contracts": "~3.5.0",
"symfony/filesystem": "~7.2.0",
"symfony/finder": "~7.2.0",
"symfony/framework-bundle": "~7.2.0",
"symfony/http-client": "~7.2.0",
"symfony/http-foundation": "~7.2.0",
"symfony/http-kernel": "~7.2.0",
"symfony/intl": "~7.2.0",
"symfony/lock": "~7.2.0",
"symfony/mailer": "~7.2.0",
"symfony/messenger": "~7.2.0",
"symfony/mime": "~7.2.0",
"symfony/monolog-bridge": "~7.2.0",
"symfony/monolog-bundle": "~3.10.0",
"symfony/options-resolver": "~7.2.0",
"symfony/polyfill-php83": "~1.29.0",
"symfony/process": "~7.2.0",
"symfony/property-access": "~7.2.0",
"symfony/property-info": "~7.2.0",
"symfony/proxy-manager-bridge": "~6.4.8",
"symfony/psr-http-message-bridge": "~7.2.0",
"symfony/rate-limiter": "~7.2.0",
"symfony/routing": "~7.2.0",
"symfony/runtime": "~7.2.0",
"symfony/scheduler": "~7.2.0",
"symfony/security-core": "~7.2.0",
"symfony/security-csrf": "~7.2.0",
"symfony/serializer": "~7.2.0",
"symfony/service-contracts": "~3.5.0",
"symfony/stopwatch": "~7.2.0",
"symfony/string": "~7.2.0",
"symfony/translation": "~7.2.0",
"symfony/translation-contracts": "~3.5.0",
"symfony/twig-bridge": "~7.2.0",
"symfony/twig-bundle": "~7.2.0",
"symfony/validator": "~7.2.0",
"symfony/var-exporter": "~7.2.0",
"symfony/yaml": "~7.2.0",
"tecnickcom/tcpdf": "^6.7.7",
"twig/intl-extra": "^3.10.0",
"twig/string-extra": "^3.10.0",
"twig/twig": "^3.14.0",
"zircote/swagger-php": "^4.9.2"
},
"require-dev": {
"ext-tokenizer": "*",
"ext-xmlwriter": "*",
"bamarni/composer-bin-plugin": "^1.8.2",
"brianium/paratest": "^7.3",
"dominikb/composer-license-checker": "^2.5",
"ergebnis/phpunit-slow-test-detector": "^2.4",
"friendsofphp/php-cs-fixer": "3.64.0",
"jdorn/sql-formatter": "^1.2.17",
"league/construct-finder": "^1.1",
"league/flysystem-async-aws-s3": "^3.29.0",
"league/flysystem-google-cloud-storage": "^3.10.3",
"nikic/php-parser": "^4.16.0",
"opis/json-schema": "^2.3.0",
"phpbench/phpbench": "^1.2.15",
"phpdocumentor/reflection-docblock": "^5.3.0",
"phpdocumentor/type-resolver": "^1.7.1",
"phpstan/extension-installer": "^1.4.3",
"phpstan/phpdoc-parser": "1.33.0",
"phpstan/phpstan": "1.12.12",
"phpstan/phpstan-deprecation-rules": "1.2.1",
"phpstan/phpstan-phpunit": "1.4.1",
"phpstan/phpstan-symfony": "1.4.12",
"phpunit/phpunit": "^10.5.38",
"predis/predis": "^2.2",
"rector/type-perfect": "1.0.0",
"shopware/dev-tools": "^1.3",
"smalot/pdfparser": "^2.2.2",
"symfony/browser-kit": "~7.2.0",
"symfony/css-selector": "~7.2.0",
"symfony/dom-crawler": "~7.2.0",
"symfony/expression-language": "~7.2.0",
"symfony/phpunit-bridge": "~7.2.0",
"symfony/var-dumper": "~7.2.0",
"symplify/phpstan-rules": "13.0.1"
},
"suggest": {
"shopware/dev-tools": "For development tools, profiler, faker, etc",
"league/flysystem-async-aws-s3": "Required to use the Flysystem S3 driver (^3.10.3)",
"league/flysystem-google-cloud-storage": "Required to use the Flysystem Google cloud driver (^3.10.3)"
},
"repositories": [
{
"type": "path",
"url": "custom/plugins/*",
"options": {
"symlink": true
}
}
],
"scripts-descriptions": {
"admin:code-mods": "Run admin code mods",
"admin:create:test": "Create a admin test blueprint",
"admin:generate-entity-schema-types": "Generate the Typescript definition for the entity schema",
"admin:generate-position-identifier-list": "Generate the list of all position identifiers. Used to track breaking changes.",
"admin:generate-data-set-list": "Generate the list of all data sets. Used to track breaking changes.",
"admin:unit": "Launches the jest unit test-suite for the Admin",
"admin:unit:disabled-compat": "Launches the jest unit test-suite for the Admin with disabled compat mode",
"admin:unit:watch": "Launches the interactive jest unit test-suite watcher for the Admin",
"admin:unit:watch:disabled-compat": "Launches the interactive jest unit test-suite watcher for the Admin with disabled compat mode",
"bc-check": "Checks for backwards compatibility breaks in the current branch",
"build:js": "Builds Administration & Storefront",
"build:js:admin": "Builds the Administration",
"build:js:component-library": "Builds the component library",
"build:js:storefront": "Builds the Storefront's JavaScript",
"check:license": "Check thrid-party dependency licenses",
"ecs": "Checks all files regarding the PHP-CS-Fixer",
"ecs-fix": "Checks all files regarding the PHP-CS-Fixer and fixes them if possible",
"eslint": "Codestyle checks all (Administration/Storefront) JS/TS files",
"eslint:admin": "Codestyle checks Administration JS/TS files",
"eslint:admin:fix": "Codestyle checks Administration JS/TS files and fixes them if possible",
"format:admin": "Dry run Prettier for the Administration",
"format:admin:fix": "Format the Administration with Prettier",
"eslint:storefront": "Codestyle checks all Storefront JS/TS files",
"framework:schema:dump": " ",
"hook:pre-commit": " ",
"hook:pre-commit:install": " ",
"hook:pre-push": " ",
"hook:pre-push:install": " ",
"init:db": " ",
"init:js": " ",
"init:testdb": "Initializes the test database",
"lint": "Shorthand for the composer commands 'stylelint', 'eslint', 'ecs', 'lint:changelog' and 'lint:snippets'",
"lint:changelog": "Validates changelogs",
"lint:snippets": "Validates existence of snippets in all core-supported languages",
"ludtwig:storefront": "Codestyle checks for all Storefront twig files using ludtwig",
"ludtwig:storefront:fix": "Auto-fixes all fixable twig codestyle in Storefront",
"make:coverage": "Generate test coverage files for current branch",
"npm:admin": " ",
"npm:admin:bin": " ",
"npm:admin:check-license": "Check thrid-party dependency licenses for administration",
"npm:component-library": " ",
"npm:component-library:bin": " ",
"npm:storefront": " ",
"npm:storefront:bin": " ",
"npm:storefront:check-license": "Check thrid-party dependency licenses for storefront",
"paratest": " ",
"phpbench": " ",
"phpstan": "Launches the PHP static analysis tool",
"phpstan-errors-by-area": "Shows the ignored errors defined in the phpstan-baseline.neon by area",
"phpstan-v66-errors-by-area": "Shows the ignored errors for versio 6.6 defined in the phpstan-v66-baseline.neon by area",
"phpunit": "Launches the PHP unit test-suite",
"post-install-cmd": " ",
"post-update-cmd": " ",
"reset": "Resets this Shopware instance, without composer and npm install. (Faster reset if no dependencies changed)",
"setup": "Resets and re-installs this Shopware instance",
"static-analyze": "Launches the PHP Stan static analysis tool",
"storefront:unit": "Launches the jest unit test-suite for the Storefront",
"storefront:unit:watch": "Launches the interactive jest unit test-suite watcher for the Storefront",
"stylelint": "Codestyle checks all SCSS files of Administration and Storefront",
"stylelint:admin": "Code Style checks for all Admin SCSS files",
"stylelint:admin:fix": "Code Style checks for all Admin SCSS files and fixes them if possible",
"stylelint:storefront": "Code Style checks for all Storefront SCSS files",
"stylelint:storefront:fix": "Code Style checks for all Storefront SCSS files and fixes them if possible",
"watch:admin": "Enables hot module reloading for the Admin",
"watch:storefront": "Enables hot module reloading for the Storefront"
},
"scripts": {
"admin:code-mods": "@npm:admin run code-mods --",
"admin:create:test": "@npm:admin run create-test",
"admin:generate-entity-schema-types": [
"@framework:schema:dump",
"@npm:admin run convert-entity-schema"
],
"admin:generate-position-identifier-list": [
"@npm:admin run generate-position-identifier-list"
],
"admin:generate-data-set-list": [
"@npm:admin run generate-data-set-list"
],
"admin:unit": [
"Composer\\Config::disableProcessTimeout",
"@framework:schema:dump",
"@npm:admin run unit-setup",
"@npm:admin run unit"
],
"admin:unit:watch": [
"Composer\\Config::disableProcessTimeout",
"@framework:schema:dump",
"@npm:admin run unit-setup",
"@npm:admin run unit-watch"
],
"admin:unit:disabled-compat": [
"Composer\\Config::disableProcessTimeout",
"@framework:schema:dump",
"@npm:admin run unit-setup",
"@npm:admin run unit:disabled-compat"
],
"admin:unit:watch:disabled-compat": [
"Composer\\Config::disableProcessTimeout",
"@framework:schema:dump",
"@npm:admin run unit-watch:disabled-compat"
],
"bc-check": [
"@php vendor-bin/roave-backward-compatibility-check/bin/verify-version.php",
"roave-backward-compatibility-check --install-development-dependencies --from=$(git tag -l --sort -version:refname | head -n 1)"
],
"build:js": [
"@build:js:admin",
"@build:js:storefront"
],
"build:js:admin": [
"@php bin/console bundle:dump",
"@php bin/console feature:dump",
"@admin:generate-entity-schema-types",
"@npm:admin run build",
"@php bin/console assets:install"
],
"build:js:component-library": [
"@npm:component-library run generate"
],
"build:js:storefront": [
"@php bin/console bundle:dump",
"@php bin/console feature:dump",
"@npm:storefront run production",
"cd src/Storefront/Resources/app/storefront && node copy-to-vendor.js",
"@php bin/console theme:compile --sync",
"@php bin/console assets:install"
],
"check:license": "bash -c \"vendor/bin/composer-license-checker check -a $(sed -z 's/\\n/ -a /g' .allowed-licenses)\"",
"ecs": "php-cs-fixer fix --dry-run --diff",
"ecs-fix": "php-cs-fixer fix",
"eslint": [
"@eslint:admin",
"@eslint:storefront"
],
"eslint:admin": "@npm:admin run lint:all",
"eslint:admin:fix": "@npm:admin run lint:fix",
"format:admin": "@npm:admin run format",
"format:admin:fix": "@npm:admin run format:fix",
"eslint:storefront": "@npm:storefront run lint:js",
"eslint:storefront:fix": "@npm:storefront run lint:js:fix",
"framework:schema:dump": "@php bin/console -e prod framework:schema -s 'entity-schema' src/Administration/Resources/app/administration/test/_mocks_/entity-schema.json",
"hook:pre-commit": [
"bin/pre-commit"
],
"hook:pre-commit:install": [
"ln -sf $PWD/bin/pre-commit .git/hooks/pre-commit"
],
"hook:pre-push": [
"bin/pre-commit"
],
"hook:pre-push:install": [
"ln -sf $PWD/bin/pre-push .git/hooks/pre-push"
],
"init:db": [
"@php bin/console system:install --drop-database --basic-setup --force --no-assign-theme"
],
"init:js": [
"@npm:admin clean-install --no-audit --prefer-offline",
"@npm:storefront clean-install --no-audit --prefer-offline",
"export PROJECT_ROOT=\"$PWD\"; \"$PROJECT_ROOT\"/bin/install-extension-npm"
],
"init:testdb": [
"FORCE_INSTALL=true vendor/bin/phpunit --group=none"
],
"lint": [
"@stylelint",
"@eslint",
"@ecs",
"@lint:changelog",
"@lint:snippets"
],
"lint:changelog": "@php bin/shopware changelog:check",
"lint:snippets": "@php bin/shopware snippets:validate",
"ludtwig:storefront": "cd ./src/Storefront/Resources/views; ludtwig .",
"ludtwig:storefront:fix": "@ludtwig:storefront --fix",
"make:coverage": [
"@php bin/console make:coverage $(git diff --name-only origin/trunk -- \"*.php\" | grep -vE 'Test\\.php$' | sed 's/.*/\"&\"/' | tr '\\n' ' ')"
],
"npm:admin": "@npm:admin:bin npm",
"npm:admin:bin": "export PROJECT_ROOT=\"$PWD\"; cd src/Administration/Resources/app/administration; export PATH=\"$PWD/node_modules/.bin/:$PATH\"; \"$PROJECT_ROOT\"/bin/exec-with-env ",
"npm:admin:check-license": "export ALLOWED_LICENSES=\"$(sed -z 's/\\n/;/g' .allowed-licenses)\"; cd src/Administration/Resources/app/administration; bash -c \"node_modules/.bin/license-checker-rseidelsohn --onlyAllow \\\"$ALLOWED_LICENSES\\\" --excludePrivatePackages\"",
"npm:component-library": "@npm:component-library:bin npm",
"npm:component-library:bin": "export PROJECT_ROOT=\"$PWD\"; cd src/Administration/Resources/app/administration/build/nuxt-component-library; export PATH=\"$PWD/node_modules/.bin/:$PATH\"; \"$PROJECT_ROOT\"/bin/exec-with-env ",
"npm:storefront": "@npm:storefront:bin npm",
"npm:storefront:bin": "export PROJECT_ROOT=\"$PWD\"; cd src/Storefront/Resources/app/storefront; export PATH=\"$PWD/node_modules/.bin/:$PATH\"; \"$PROJECT_ROOT\"/bin/exec-with-env ",
"npm:storefront:check-license": "export ALLOWED_LICENSES=\"$(sed -z 's/\\n/;/g' .allowed-licenses)\"; cd src/Storefront/Resources/app/storefront; bash -c \"node_modules/.bin/license-checker-rseidelsohn --onlyAllow \\\"$ALLOWED_LICENSES\\\" --excludePrivatePackages\"",
"paratest": [
"paratest --configuration phpunit.xml.dist --testsuite=paratest --exclude-group=skip-paratest,needsWebserver --processes $(getconf _NPROCESSORS_ONLN)"
],
"phpbench": "phpbench run --report=compressed",
"phpstan": [
"Composer\\Config::disableProcessTimeout",
"@php src/Core/DevOps/StaticAnalyze/phpstan-bootstrap.php",
"phpstan analyze --memory-limit=2G -v"
],
"phpstan-errors-by-area": [
"php src/Core/DevOps/StaticAnalyze/print-ignored-errors-by-area.php phpstan-baseline.neon"
],
"phpstan-v66-errors-by-area": [
"php src/Core/DevOps/StaticAnalyze/print-ignored-errors-by-area.php phpstan-v66-baseline.neon"
],
"phpunit": [
"phpunit"
],
"post-install-cmd": [
"@composer bin all install --ansi",
"ln -sf ./../../vendor-bin/roave-backward-compatibility-check/vendor/bin/roave-backward-compatibility-check vendor/bin/roave-backward-compatibility-check"
],
"post-update-cmd": [
"@composer bin all update --ansi",
"ln -sf ./../../vendor-bin/roave-backward-compatibility-check/vendor/bin/roave-backward-compatibility-check vendor/bin/roave-backward-compatibility-check"
],
"reset": [
"@init:db",
"@build:js",
"@php bin/console theme:change --sync --all Storefront",
"@php bin/console assets:install"
],
"setup": [
"@composer install -o",
"mkdir -p config/jwt || true",
"mkdir -p custom/plugins || true",
"@init:db",
"@init:js",
"@build:js",
"@php bin/console theme:change --sync --all Storefront",
"@php bin/console assets:install"
],
"static-analyze": [
"@phpstan src/"
],
"storefront:unit": [
"@npm:storefront run unit"
],
"storefront:unit:watch": [
"Composer\\Config::disableProcessTimeout",
"@npm:storefront run unit-watch"
],
"stylelint": [
"@stylelint:admin src/**/*.scss",
"@stylelint:storefront src/**/*.scss"
],
"stylelint:admin": "@npm:admin run lint:scss",
"stylelint:admin:fix": "@npm:admin run lint:scss-fix",
"stylelint:storefront": "@npm:storefront run lint:scss",
"stylelint:storefront:fix": "@npm:storefront run lint:scss-fix",
"watch:admin": [
"Composer\\Config::disableProcessTimeout",
"@php bin/console feature:dump",
"@php bin/console bundle:dump",
"@admin:generate-entity-schema-types",
"@npm:admin run dev"
],
"watch:storefront": [
"Composer\\Config::disableProcessTimeout",
"@php bin/console bundle:dump",
"@php bin/console feature:dump",
"@php bin/console theme:dump",
"@npm:storefront run hot-proxy"
]
},
"autoload": {
"files": [
"src/Core/Framework/Adapter/Doctrine/Patch/AbstractAsset.php"
],
"psr-4": {
"Shopware\\": "src/"
},
"exclude-from-classmap": [
"src/**/Test/",
"tests/"
]
},
"autoload-dev": {
"psr-4": {
"Shopware\\Tests\\Examples\\": "tests/examples/",
"Shopware\\Tests\\Unit\\": "tests/unit/",
"Shopware\\Tests\\Integration\\": "tests/integration/",
"Shopware\\Tests\\Bench\\": "tests/performance/bench/",
"Shopware\\Tests\\Migration\\": "tests/migration/",
"Shopware\\Tests\\DevOps\\": "tests/devops/"
}
}
}