forked from shopware/shopware
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcomposer.json
More file actions
634 lines (634 loc) · 30.7 KB
/
Copy pathcomposer.json
File metadata and controls
634 lines (634 loc) · 30.7 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
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
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
{
"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"
},
"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://chat.shopware.com/"
},
"extra": {
"bamarni-bin": {
"bin-links": false,
"forward-command": false
},
"branch-alias": {
"dev-main": "6.7.x-dev",
"dev-master": "6.7.x-dev",
"dev-trunk": "6.7.x-dev"
},
"phpstan/extension-installer": {
"ignore": [
"composer/pcre"
]
}
},
"config": {
"audit": {
"abandoned": "report"
},
"sort-packages": true,
"process-timeout": 7200,
"allow-plugins": {
"bamarni/composer-bin-plugin": true,
"composer/package-versions-deprecated": true,
"cweagans/composer-patches": true,
"php-http/discovery": true,
"phpstan/extension-installer": true,
"symfony/runtime": true
}
},
"require": {
"php": "~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0",
"ext-ctype": "*",
"ext-curl": "*",
"ext-dom": "*",
"ext-fileinfo": "*",
"ext-filter": "*",
"ext-gd": "*",
"ext-intl": "*",
"ext-json": "*",
"ext-libxml": "*",
"ext-mbstring": "*",
"ext-openssl": "*",
"ext-pdo": "*",
"ext-pdo_mysql": "*",
"ext-session": "*",
"ext-simplexml": "*",
"ext-sodium": "*",
"ext-xml": "*",
"ext-xmlreader": "*",
"ext-zip": "*",
"ext-zlib": "*",
"composer-runtime-api": "^2.1",
"async-aws/core": "^1.22",
"cocur/slugify": "^4.7.0",
"composer/class-map-generator": "^1.7",
"composer/composer": "^2.9.3",
"composer/semver": "^3.4.0",
"doctrine/dbal": "~4.4.0",
"doctrine/inflector": "^2.0",
"dompdf/dompdf": "~3.1.6",
"dragonmantank/cron-expression": "^3.3",
"ezyang/htmlpurifier": "^4.16",
"guzzlehttp/guzzle": "^7.5.0",
"guzzlehttp/promises": "^2.5",
"guzzlehttp/psr7": "^2.4",
"horstoeko/zugferd": "^1.0.104",
"lcobucci/jwt": "^5.5",
"league/flysystem": "^3.13.0",
"league/flysystem-local": "^3.29.0",
"league/flysystem-memory": "^3.10.3",
"league/mime-type-detection": "^1.13.0",
"league/oauth2-server": "^9.3",
"mcp/sdk": "^0.7.0",
"meyfa/php-svg": "^0.16.1",
"monolog/monolog": "^3.3.1",
"nikic/php-parser": "^5.8.0",
"nyholm/psr7": "^1.5",
"opensearch-project/opensearch-php": "^2.6.0",
"pentatrion/vite-bundle": "^8.1",
"php-http/discovery": "^1.20",
"phpseclib/phpseclib": "^3.0",
"psr/cache": "^3.0.0",
"psr/clock": "^1.0.0",
"psr/container": "^2.0.2",
"psr/event-dispatcher": "^1.0.0",
"psr/http-client": "^1.0.3",
"psr/http-factory": "^1.0.1",
"psr/http-message": "^1.1 || ^2.0",
"psr/http-server-middleware": "^1.0",
"psr/log": "^3.0.0",
"psr/simple-cache": "^3.0.0",
"ramsey/uuid": "^4.7",
"scssphp/scssphp": "v1.12.0",
"setasign/fpdi": "^2.3.7",
"setasign/tfpdf": "^1.33",
"shopware/conflicts": "0.6.2",
"shyim/opensearch-php-dsl": "^1.1.4",
"squirrelphp/twig-php-syntax": "^1.13.0",
"symfony/asset": "~7.4.0",
"symfony/cache": "~7.4.12",
"symfony/cache-contracts": "~3.6.0",
"symfony/clock": "~7.4.0",
"symfony/config": "~7.4.0",
"symfony/console": "~7.4.0",
"symfony/debug-bundle": "~7.4.0",
"symfony/dependency-injection": "~7.4.0",
"symfony/deprecation-contracts": "~3.6.0",
"symfony/doctrine-messenger": "~7.4.0",
"symfony/dotenv": "~7.4.0",
"symfony/error-handler": "~7.4.0",
"symfony/event-dispatcher": "~7.4.0",
"symfony/event-dispatcher-contracts": "~3.6.0",
"symfony/filesystem": "~7.4.0",
"symfony/finder": "~7.4.0",
"symfony/framework-bundle": "~7.4.0",
"symfony/http-client": "~7.4.0",
"symfony/http-client-contracts": "~3.6.0",
"symfony/http-foundation": "~7.4.0",
"symfony/http-kernel": "~7.4.12",
"symfony/intl": "~7.4.0",
"symfony/lock": "~7.4.0",
"symfony/mailer": "~7.4.12",
"symfony/mcp-bundle": "~0.11.0",
"symfony/messenger": "~7.4.12",
"symfony/mime": "~7.4.12",
"symfony/monolog-bridge": "~7.4.12",
"symfony/monolog-bundle": "~3.11.0",
"symfony/options-resolver": "~7.4.0",
"symfony/password-hasher": "~7.4.0",
"symfony/polyfill-mbstring": ">=1.34.0",
"symfony/polyfill-php83": ">=1.34.0",
"symfony/polyfill-php84": ">=1.34.0",
"symfony/polyfill-php85": ">=1.34.0",
"symfony/polyfill-php86": ">=1.34.0",
"symfony/process": "~7.4.0",
"symfony/property-access": "~7.4.0",
"symfony/property-info": "~7.4.0",
"symfony/proxy-manager-bridge": "~6.4.8",
"symfony/psr-http-message-bridge": "~7.4.0",
"symfony/rate-limiter": "~7.4.0",
"symfony/routing": "~7.4.12",
"symfony/runtime": "~7.4.12",
"symfony/scheduler": "~7.4.0",
"symfony/security-core": "~7.4.12",
"symfony/serializer": "~7.4.0",
"symfony/service-contracts": "~3.6.0",
"symfony/stopwatch": "~7.4.0",
"symfony/string": "~7.4.0",
"symfony/translation": "~7.4.0",
"symfony/translation-contracts": "~3.6.0",
"symfony/twig-bridge": "~7.4.12",
"symfony/twig-bundle": "~7.4.0",
"symfony/uid": "~7.4.9",
"symfony/ux-twig-component": "~2.35.0",
"symfony/validator": "~7.4.0",
"symfony/var-exporter": "~7.4.0",
"symfony/yaml": "~7.4.12",
"twig/intl-extra": "^3.26.0",
"twig/string-extra": "^3.24.0",
"twig/twig": "^3.26.0",
"zircote/swagger-php": "^6.4"
},
"require-dev": {
"ext-tokenizer": "*",
"ext-xmlwriter": "*",
"bamarni/composer-bin-plugin": "^1.8.2",
"doctrine/sql-formatter": "^1.5.4",
"dominikb/composer-license-checker": "^2.5",
"ergebnis/phpunit-slow-test-detector": "^2.4",
"friendsofphp/php-cs-fixer": "3.95.15",
"league/flysystem-async-aws-s3": "^3.29.0",
"league/flysystem-google-cloud-storage": "^3.10.3",
"opis/json-schema": "^2.3.0",
"phpat/phpat": "0.12.4",
"phpbench/phpbench": "^1.6.1",
"phpdocumentor/reflection-docblock": "^5.6.4",
"phpdocumentor/type-resolver": "^1.7.1",
"phpstan/extension-installer": "^1.4.3",
"phpstan/phpdoc-parser": "^2.0.0",
"phpstan/phpstan": "2.2.8",
"phpstan/phpstan-deprecation-rules": "2.0.5",
"phpstan/phpstan-phpunit": "2.0.18",
"phpstan/phpstan-strict-rules": "2.0.12",
"phpstan/phpstan-symfony": "2.0.20",
"phpunit/phpunit": "^11.5.19",
"predis/predis": "^2.2",
"rector/type-perfect": "2.1.4",
"shipmonk/composer-dependency-analyser": "^1.8",
"shopware/dev-tools": "^1.3",
"smalot/pdfparser": "^2.2.2",
"symfony/browser-kit": "~7.4.0",
"symfony/doctrine-bridge": "~7.4.14",
"symfony/dom-crawler": "~7.4.12",
"symfony/phpunit-bridge": "~7.4.0",
"symfony/var-dumper": "~7.4.0",
"symfony/web-profiler-bundle": "~7.4.12",
"symplify/phpstan-rules": "14.10.0"
},
"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
}
},
{
"type": "path",
"url": "custom/static-plugins/*",
"options": {
"symlink": true
}
},
{
"type": "composer",
"url": "https://shopware.github.io/conflicts/"
}
],
"scripts-descriptions": {
"admin:check-extensions": "[EXPERIMENTAL] Type-checks and lints Administration extensions (interactive; -- --help for flags)",
"admin:code-mods": "Run admin code mods",
"admin:codemod:sfc-migration": "Convert Options API Administration components into native setup SFCs (-- <path> [--write] [--replace-originals])",
"admin:create:test": "Create a admin test blueprint",
"admin:generate-blocks-list": "Generate the list of all blocks. Used to track block changes in the administration.",
"admin:generate-data-set-list": "Generate the list of all data sets. Used to track breaking changes.",
"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:lint:snippets": "Checks that no admin snippet duplicates a global.default translation in every locale.",
"admin:lint:snippets:all": "Like admin:lint:snippets but ignores the allow list, listing every duplicate including the allowed ones.",
"admin:setup-extension-tooling": "[EXPERIMENTAL] Generates TypeScript/ESLint configs for installed Administration extensions",
"admin:setup-extension-tooling:check": "[EXPERIMENTAL] Read-only dry-run of admin:setup-extension-tooling (exit 1 on drift)",
"admin:unit": "Launches the jest unit test-suite for the Admin",
"admin:unit:major": "Launches the jest unit test-suite for the Admin with all major feature flags enabled",
"admin:unit:watch": "Launches the interactive jest unit test-suite watcher for the Admin",
"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. Deprecated! Use 'cs' instead",
"cs": "Checks all files regarding the PHP-CS-Fixer",
"ecs-fix": "Checks all files regarding the PHP-CS-Fixer and fixes them if possible. Deprecated! Use 'cs-fix' instead",
"cs-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",
"eslint:storefront": "Codestyle checks all Storefront JS/TS files",
"eslint:storefront:fix": "Codestyle checks all Storefront JS/TS files and fixes them if possible",
"eslint:storefront:admin-modules": "Codestyle checks the Storefront's admin-modules JS files",
"eslint:storefront:admin-modules:fix": "Codestyle checks the Storefront's admin-modules JS files and fixes them if possible",
"eslint:acceptance": "Codestyle checks the acceptance test suite TS files",
"eslint:acceptance:fix": "Codestyle checks the acceptance test suite TS files and fixes them if possible",
"format:acceptance": "Dry run Prettier for the acceptance test suite",
"format:acceptance:fix": "Format the acceptance test suite with Prettier",
"format:admin": "Dry run Prettier for all Administration workspaces",
"format:admin:fix": "Format all Administration workspaces with Prettier",
"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', 'cs' and 'translation:lint'",
"lint:actions": "Lints GitHub Actions workflows/actions with actionlint, checks their formatting with yamlfmt, and audits them with zizmor",
"lint:actions:fix": "Formats GitHub Actions workflows/actions with yamlfmt",
"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:acceptance": " ",
"npm:acceptance:bin": " ",
"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:admin-modules": " ",
"npm:storefront:admin-modules:bin": " ",
"npm:storefront:bin": " ",
"npm:storefront:check-license": "Check thrid-party dependency licenses for storefront",
"phpbench": " ",
"phpstan": "Launches the PHP static analysis tool",
"phpstan-errors-by-area": "Shows the ignored errors defined in the phpstan-baseline.neon by area",
"phpunit": "Launches the PHP unit test-suite",
"post-install-cmd": " ",
"post-update-cmd": " ",
"rector": " ",
"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:lint:snippets": "Checks that no storefront snippet duplicates a global.default translation in every locale.",
"storefront:lint:snippets:all": "Like storefront:lint:snippets but ignores the allow list, listing every duplicate including the allowed ones.",
"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",
"storefront:components:unit": "Launches the Vitest unit test-suite for Storefront components",
"storefront:components:unit:watch": "Launches the interactive Vitest unit test-suite watcher for Storefront components",
"storefront:dev-server": "Starts the Vite dev server for the Storefront (port 5175 by default, override with STOREFRONT_VITE_PORT)",
"storefront:storybook": "Runs the Storybook development server for the Storefront component library",
"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",
"translation:lint-filenames": "Validates snippet filesnames",
"translation:lint-filenames:fix": "Validates snippet filesnames and migrates them if necessary",
"translation:metadata:delete": "Deletes the local Crowdin translation metadata lock file",
"translation:install": "Downloads and installs translations from the translations GitHub repository",
"translation:lint": "Validates existence of snippets in all core-supported languages",
"translation:update": "Updates all installed translations from the translations GitHub repository",
"watch:admin": "Enables hot module reloading for the Admin",
"watch:storefront": "Enables hot module reloading for the Storefront. Deprecated! Use 'storefront:dev-server' instead.",
"zugferd:compliance": "Validates the generated ZUGFeRD snapshot documents against the EN16931 business rules using the KoSIT validator (requires Java)"
},
"scripts": {
"admin:check-extensions": "@npm:admin:bin npm run extension-tooling:check --",
"admin:code-mods": "@npm:admin run code-mods --",
"admin:codemod:sfc-migration": "@npm:admin run codemod:sfc-migration --",
"admin:create:test": "@npm:admin run create-test",
"admin:generate-blocks-list": "@npm:admin run generate-blocks-list",
"admin:generate-data-set-list": [
"@npm:admin run generate-data-set-list"
],
"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:lint:snippets": "@npm:admin run lint:snippets",
"admin:lint:snippets:all": "@npm:admin run lint:snippets:all",
"admin:setup-extension-tooling": "@npm:admin:bin npm run extension-tooling:setup --",
"admin:setup-extension-tooling:check": "@npm:admin:bin npm run extension-tooling:setup -- --check",
"admin:unit": [
"Composer\\Config::disableProcessTimeout",
"@framework:schema:dump",
"@npm:admin run unit-setup",
"@npm:admin run unit"
],
"admin:unit:major": [
"Composer\\Config::disableProcessTimeout",
"@putenv FEATURE_ALL=major",
"@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"
],
"bc-check": [
"@php vendor-bin/roave-backward-compatibility-check/bin/verify-version.php",
"STREAM=\"${GITHUB_REF_NAME:-$(git branch --show-current)}\"; case \"$STREAM\" in *.x) BASE=$(git tag -l --sort -version:refname | grep \"^v${STREAM%.x}\\.\" | head -n 1);; esac; roave-backward-compatibility-check --install-development-dependencies --from=\"${BASE:-$(git tag -l --sort -version:refname | grep \"^v$(sed -n 's/.*\"dev-trunk\": \"\\([0-9]*\\.[0-9]*\\).*\"/\\1/p' composer.json).\" | 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 assets:install",
"@php bin/console theme:compile --sync || true"
],
"check:license": "bash -c \"vendor/bin/composer-license-checker check -a $(sed -z 's/\\n/ -a /g' .allowed-licenses)\"",
"eslint": [
"@eslint:admin",
"@eslint:storefront",
"@eslint:storefront:admin-modules",
"@eslint:acceptance"
],
"eslint:admin": "@npm:admin run lint:all",
"eslint:admin:fix": "@npm:admin run lint:fix",
"eslint:storefront": "@npm:storefront run lint:js",
"eslint:storefront:fix": "@npm:storefront run lint:js:fix",
"eslint:storefront:admin-modules": "@npm:storefront:admin-modules run lint",
"eslint:storefront:admin-modules:fix": "@npm:storefront:admin-modules run lint:fix",
"eslint:acceptance": "@npm:acceptance run lint",
"eslint:acceptance:fix": "@npm:acceptance run lint:fix",
"format:acceptance": "@npm:acceptance run format",
"format:acceptance:fix": "@npm:acceptance run format:fix",
"format:admin": [
"@npm:admin run format",
"@npm:storefront:admin-modules run format"
],
"format:admin:fix": [
"@npm:admin run format:fix",
"@npm:storefront:admin-modules run format: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",
"@npm:acceptance clean-install --no-audit --prefer-offline",
"export PROJECT_ROOT=\"$PWD\"; \"$PROJECT_ROOT\"/bin/install-extension-npm"
],
"init:testdb": [
"@putenv FORCE_INSTALL=true",
"@php src/Core/TestBootstrap.php"
],
"lint": [
"@stylelint",
"@eslint",
"@cs",
"@php bin/shopware translation:validate",
"@lint:actions"
],
"lint:actions": ".github/bin/lint-actions.bash",
"lint:actions:fix": ".github/bin/lint-actions.bash --fix",
"lint:snippets": "@php bin/shopware translation: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:acceptance": "@npm:acceptance:bin npm",
"npm:acceptance:bin": "export PROJECT_ROOT=\"$PWD\"; cd tests/acceptance; export PATH=\"$PWD/node_modules/.bin/:$PATH\"; \"$PROJECT_ROOT\"/bin/exec-with-env ",
"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:admin-modules": "@npm:storefront:admin-modules:bin npm",
"npm:storefront:admin-modules:bin": "export PROJECT_ROOT=\"$PWD\"; cd src/Storefront/Resources/app/administration; export PATH=\"$PROJECT_ROOT\"/src/Administration/Resources/app/administration/node_modules/.bin/:\"$PATH\"; \"$PROJECT_ROOT\"/bin/exec-with-env ",
"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\"",
"phpbench": "phpbench run --report=compressed",
"dependency-analyzer": "composer-dependency-analyser",
"ecs": [
"echo \"\\e[31mDeprecated! Use 'cs' instead\n\\e[0m\"",
"php-cs-fixer fix --dry-run --diff"
],
"cs": "php-cs-fixer fix --dry-run --diff",
"ecs-fix": [
"echo \"\\e[31mDeprecated! Use 'cs-fix' instead\n\\e[0m\"",
"php-cs-fixer fix -v"
],
"cs-fix": "php-cs-fixer fix -v",
"phpstan": [
"Composer\\Config::disableProcessTimeout",
"@php src/Core/DevOps/StaticAnalyze/phpstan-bootstrap.php",
"phpstan analyze --memory-limit=4G -vv"
],
"phpstan-errors-by-area": [
"php src/Core/DevOps/StaticAnalyze/print-ignored-errors-by-area.php phpstan-baseline.neon"
],
"rector": [
"@php src/Core/DevOps/StaticAnalyze/phpstan-bootstrap.php",
"rector process --dry-run"
],
"rector-fix": [
"@php src/Core/DevOps/StaticAnalyze/phpstan-bootstrap.php",
"rector process"
],
"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",
"ln -sf ./../../vendor-bin/rector/vendor/bin/rector vendor/bin/rector"
],
"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",
"ln -sf ./../../vendor-bin/rector/vendor/bin/rector vendor/bin/rector"
],
"reset": [
"@init:db",
"@build:js",
"@php bin/console theme:change --sync --all Storefront"
],
"setup": [
"@composer install -o",
"mkdir -p custom/plugins || true",
"@translation:metadata:delete",
"@init:db",
"@init:js",
"@build:js",
"@php bin/console theme:change --sync --all Storefront",
"@admin:setup-extension-tooling --if-enabled"
],
"static-analyze": [
"@phpstan src/"
],
"storefront:lint:snippets": "src/Storefront/Resources/app/storefront/node_modules/.bin/eslint --no-cache --no-error-on-unmatched-pattern --config src/Storefront/Resources/app/storefront/eslint.config.js \"src/Storefront/Resources/snippet/storefront.*.json\"",
"storefront:lint:snippets:all": [
"@putenv SNIPPET_ALLOW_LIST_DISABLED=1",
"@storefront:lint:snippets"
],
"storefront:unit": [
"@npm:storefront run unit"
],
"storefront:unit:watch": [
"Composer\\Config::disableProcessTimeout",
"@npm:storefront run unit-watch"
],
"storefront:components:unit": [
"@npm:storefront run unit:components"
],
"storefront:components:unit:watch": [
"Composer\\Config::disableProcessTimeout",
"@npm:storefront run unit:components:watch"
],
"storefront:dev-server": [
"Composer\\Config::disableProcessTimeout",
"@php bin/console bundle:dump",
"@php bin/console feature:dump",
"@php bin/console theme:dump",
"@npm:storefront run dev:server"
],
"storefront:storybook": [
"Composer\\Config::disableProcessTimeout",
"@npm:storefront run storybook"
],
"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",
"translation:lint-filenames": "php bin/shopware translation:lint-filenames",
"translation:lint-filenames:fix": "php bin/shopware translation:lint-filenames --fix",
"translation:metadata:delete": "rm -f files/translation/crowdin-metadata.lock",
"translation:install": "php bin/shopware translation:install",
"translation:lint": "@php bin/shopware translation:validate",
"translation:update": "php bin/shopware translation:update",
"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"
],
"zugferd:compliance": "node ./.github/bin/js/zugferd-compliance.ts"
},
"autoload": {
"files": [
"src/Core/Framework/Adapter/Doctrine/Patch/AbstractAsset.php"
],
"psr-4": {
"Shopware\\": "src/"
},
"exclude-from-classmap": [
"tests/",
"src/Storefront/Resources/app/storefront/node_modules/",
"src/Administration/Resources/app/administration/node_modules/",
"src/Core/Framework/Adapter/Doctrine/Patch/"
]
},
"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/"
}
}
}