-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathcomposer.json
132 lines (132 loc) · 4.66 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
{
"name": "setono/sylius-catalog-promotion-plugin",
"description": "Catalog promotion plugin for Sylius",
"license": "MIT",
"type": "sylius-plugin",
"keywords": [
"sylius",
"sylius-plugin",
"catalog",
"setono",
"promotions"
],
"require": {
"php": ">=8.1",
"beberlei/doctrineextensions": "^1.2",
"doctrine/collections": "^1.6",
"doctrine/dbal": "^2.13",
"doctrine/event-manager": "^1.1",
"doctrine/orm": "^2.7",
"knplabs/knp-menu": "^3.2",
"setono/job-status-bundle": "^0.2.3",
"sylius/registry": "^1.6",
"sylius/resource-bundle": "^1.6",
"symfony/config": "^5.4 || ^6.0",
"symfony/console": "^5.4 || ^6.0",
"symfony/dependency-injection": "^5.4 || ^6.0",
"symfony/form": "^5.4 || ^6.0",
"symfony/lock": "^5.4 || ^6.0",
"symfony/options-resolver": "^5.4 || ^6.0",
"symfony/validator": "^5.4 || ^6.0",
"webmozart/assert": "^1.10"
},
"require-dev": {
"phpspec/phpspec": "^7.1",
"phpunit/phpunit": "^9.5",
"psalm/plugin-phpunit": "^0.16.1",
"psalm/plugin-symfony": "^3.0",
"setono/code-quality-pack": "^2.1.2",
"setono/sylius-behat-pack": "^0.2.1",
"sylius/sylius": "~1.10.14",
"symfony/debug-bundle": "^5.4 || ^6.0",
"symfony/dotenv": "^5.4 || ^6.0",
"symfony/intl": "^5.4 || ^6.0",
"symfony/web-profiler-bundle": "^5.4 || ^6.0",
"weirdan/doctrine-psalm-plugin": "^1.0"
},
"prefer-stable": true,
"autoload": {
"psr-4": {
"Setono\\SyliusCatalogPromotionPlugin\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Tests\\Setono\\SyliusCatalogPromotionPlugin\\": "tests/"
},
"classmap": [
"tests/Application/Kernel.php"
]
},
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": false,
"ergebnis/composer-normalize": true,
"symfony/thanks": false
},
"sort-packages": true
},
"extra": {
"branch-alias": {
"dev-master": "1.0-dev"
},
"unused": [
"beberlei/doctrineextensions"
]
},
"scripts": {
"all": [
"@checks",
"@tests"
],
"analyse": [
"@ensure-test-container-exists",
"psalm --threads=8"
],
"assets": [
"@ensure-assets-installed",
"@ensure-assets-compiled"
],
"behat": [
"APP_ENV=test composer ensure-database-created",
"APP_ENV=test composer ensure-schema-updated",
"./vendor/bin/behat --tags=\"~@javascript\" --no-interaction --format=progress"
],
"behat-js": [
"APP_ENV=test composer ensure-database-created",
"APP_ENV=test composer ensure-schema-updated",
"./vendor/bin/behat --tags=\"@javascript\" --no-interaction --format=progress"
],
"check-style": "ecs check",
"checks": [
"composer check-style",
"composer analyse"
],
"ensure-assets-compiled": "[[ -d tests/Application/public/assets ]] || (cd tests/Application && yarn build && bin/console assets:install public)",
"ensure-assets-installed": "[[ -d tests/Application/node_modules ]] || (cd tests/Application && yarn install)",
"ensure-database-created": "(cd tests/Application && bin/console doctrine:database:create --if-not-exists)",
"ensure-schema-updated": "(cd tests/Application && bin/console doctrine:schema:update --force)",
"ensure-test-container-exists": "[[ -f tests/Application/var/cache/test/ApplicationTests_Setono_SyliusCatalogPromotionPlugin_Application_KernelTestDebugContainer.xml ]] || tests/Application/bin/console cache:warmup --env=test",
"ensure-vendors-installed": "[[ -f vendor/autoload.php ]] || COMPOSER_MEMORY_LIMIT=-1 composer install",
"fix-style": "ecs check --fix",
"fixtures": [
"composer ensure-database-created",
"composer ensure-schema-updated",
"(cd tests/Application && bin/console sylius:fixtures:load default --no-interaction)"
],
"phpspec": "phpspec run",
"phpunit": "phpunit",
"run": "(cd tests/Application && symfony server:start --port=8000)",
"tests": [
"@phpspec",
"@behat",
"@behat-js"
],
"try": [
"@ensure-vendors-installed",
"@assets",
"@fixtures",
"@run"
]
}
}