-
Notifications
You must be signed in to change notification settings - Fork 2
/
composer.json
executable file
·198 lines (198 loc) · 8.19 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
{
"name": "knutschsoft/swapp",
"license": "MIT",
"type": "project",
"description": "streetworker app",
"autoload": {
"psr-4": {
"App\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"App\\Tests\\": "tests/"
}
},
"config": {
"preferred-install": {
"*": "dist"
},
"process-timeout": 2400,
"sort-packages": true,
"optimize-autoloader": true,
"minimum-stability": "stable",
"prefer-stable" : true,
"allow-plugins": {
"phpstan/extension-installer": true,
"dealerdirect/phpcodesniffer-composer-installer": false,
"symfony/flex": true,
"symfony/runtime": true
}
},
"require": {
"php": ">=8.3",
"ext-ctype": "*",
"ext-iconv": "*",
"ext-json": "*",
"acsiomatic/device-detector-bundle": "^0.4.0",
"api-platform/core": "~3.0",
"doctrine/doctrine-bundle": "~2.3",
"doctrine/doctrine-migrations-bundle": "~3.1",
"doctrine/orm": "~2.6",
"dunglas/doctrine-json-odm": "~1.1",
"enshrined/svg-sanitize": "^0.15",
"gesdinet/jwt-refresh-token-bundle": "~1.0",
"league/csv": "~9.5",
"league/flysystem-bundle": "^2.0",
"lexik/jwt-authentication-bundle": "~2.8",
"nelmio/cors-bundle": "~2.1",
"nelmio/js-logger-bundle": "~1.6",
"nesbot/carbon": "^2.57",
"pentatrion/vite-bundle": "^6.5",
"phpdocumentor/reflection-docblock": "^5.3",
"scienta/doctrine-json-functions": "^5.2",
"stof/doctrine-extensions-bundle": "~1.3",
"symfony/asset": "6.4.*",
"symfony/expression-language": "6.4.*",
"symfony/flex": "~v2.4",
"symfony/form": "6.4.*",
"symfony/mailer": "6.4.*",
"symfony/messenger": "6.4.*",
"symfony/mime": "6.4.*",
"symfony/monolog-bundle": "~3.3",
"symfony/notifier": "6.4.*",
"symfony/property-access": "6.4.*",
"symfony/property-info": "6.4.*",
"symfony/proxy-manager-bridge": "6.4.*",
"symfony/runtime": "6.4.*",
"symfony/security-bundle": "6.4.*",
"symfony/serializer": "6.4.*",
"symfony/twig-bundle": "6.4.*",
"symfony/uid": "6.4.*",
"symfony/validator": "6.4.*",
"tattali/mobile-detect-bundle": "~v2.2",
"twig/cssinliner-extra": "^3.3",
"twig/extra-bundle": "^3.3",
"webmozart/assert": "^1.11"
},
"require-dev": {
"ext-zip": "*",
"behat/mink-browserkit-driver": "~2.1",
"captainhook/captainhook": "~5.0",
"dbrekelmans/bdi": "^1.0",
"dmarynicz/behat-parallel-extension": "^1.0",
"doctrine/data-fixtures": "^1.5",
"enlightn/security-checker": "^v1.10",
"friends-of-behat/symfony-extension": "~2.1",
"genesis/behat-fail-aid": "~3.5",
"php-webdriver/webdriver": "^1.14.0",
"phpstan/extension-installer": "^1.1",
"phpstan/phpstan": "~1.4",
"phpstan/phpstan-doctrine": "^1.2",
"phpstan/phpstan-webmozart-assert": "~1.0",
"phpunit/phpunit": "~9.5.4",
"projektmotor/symfony-coding-standard": "~1.0",
"rector/rector": "^0.18.12",
"robertfausk/behat-panther-extension": "~1.0",
"robertfausk/contexts": "dev-main",
"symfony/browser-kit": "6.4.*",
"symfony/css-selector": "6.4.*",
"symfony/dotenv": "~6.4",
"symfony/maker-bundle": "~1.13",
"symfony/phpunit-bridge": "~6.4",
"symfony/stopwatch": "^6.4",
"symfony/web-profiler-bundle": "^6.4"
},
"conflict": {
"symfony/symfony": "*"
},
"scripts": {
"cbf": "vendor/bin/phpcbf --colors src tests || true",
"cs": "vendor/bin/phpcs -s src tests || true",
"behat": "vendor/bin/behat --colors --format=progress || true",
"pbehat": "vendor/bin/behat --suite integration --parallel 16 --colors --format=progress || true",
"jbehat": "vendor/bin/behat --suite acceptance --colors --format=progress || true",
"unit": "vendor/bin/phpunit --colors || true",
"stan": "vendor/bin/phpstan analyse --no-progress --ansi || true",
"security": "vendor/bin/security-checker security:check || true",
"compile-test": [
"rm -rf var/cache/test/test.db",
"bin/console doctrine:database:create --env=test --no-interaction",
"bin/console doctrine:schema:update --dump-sql --env=test --ansi",
"bin/console doctrine:schema:update --force --env=test --ansi",
"chmod +x var/cache/test/test.db",
"chmod 777 var/cache/test/test.db",
"bin/console assets:install --env=test",
"bin/console lexik:jwt:generate-keypair --overwrite --no-interaction --env=test",
"vendor/bin/bdi detect drivers"
],
"compile-newest": [
"bin/console doctrine:database:drop --env=dev --if-exists --no-interaction --force",
"bin/console doctrine:database:create --env=dev --no-interaction --ansi",
"mysql -uroot -p12345678 -hmysql swapp < dump.sql",
"bin/console doctrine:migrations:migrate --env=dev --no-interaction --ansi"
],
"create-api-client": [
"rm -rf var/api-client && rm -rf assets/js/models",
"mkdir -p var/api-client",
"bin/console api:openapi:export --yaml --output=var/cache/dev/openapi.yaml",
"yarn openapi-generator-cli generate --output var/api-client --input-spec var/cache/dev/openapi.yaml --generator-name typescript-axios --config=openapigenerator.config.json --api-package Api --model-package Model --invoker-package 'Example\\Api'",
"mv var/api-client/Model assets/js/models"
],
"qa": [
"@cbf",
"@cs",
"@stan",
"@unit",
"@behat",
"@security"
],
"qa-full": [
"bin/console doctrine:schema:update --env=test --force",
"yarn encore production --colors",
"@qa"
],
"qa-ci": [
"@compile-test",
"mkdir -p var/log/qa-report",
"vendor/bin/phpcs -d error_reporting=\"E_ALL&~E_DEPRECATED\" --colors --report=checkstyle src tests > ./var/log/qa-report/phpcs.xml || true",
"vendor/bin/phpstan analyse --error-format=checkstyle --ansi --no-progress > ./var/log/qa-report/phpstan.xml || true",
"vendor/bin/phpunit --colors --testdox-html ./var/log/qa-report/testdox.html --testdox-text ./var/log/qa-report/testdox.txt --log-junit ./var/log/qa-report/junit.xml || true",
"mkdir -p public/images/screenshots var/log/qa-report/screenshots",
"vendor/bin/behat --suite acceptance --colors --format=pretty --out std --format=junit --out ./var/log/qa-report || true",
"vendor/bin/behat --parallel 2 --suite integration --colors --format=pretty --out std --format=junit --out ./var/log/qa-report || true",
"cp -R public/images/screenshots/* var/log/qa-report/screenshots/ || true",
"vendor/bin/security-checker security:check --format=json > ./var/log/qa-report/security-checker.json"
],
"create-jwt": [
"mkdir -p config/jwt",
"chmod -R 777 config/jwt",
"openssl genrsa -out config/jwt/private.pem 4096",
"openssl rsa -pubout -in config/jwt/private.pem -out config/jwt/public.pem"
],
"database-init": [
"php bin/console doctrine:database:drop --no-interaction --force --if-exists",
"php bin/console doctrine:database:create --if-not-exists",
"php bin/console doctrine:migrations:migrate --no-interaction"
],
"post-install-cmd": [
"@auto-scripts"
],
"post-update-cmd": [
"@auto-scripts"
],
"auto-scripts": {
"cache:clear": "symfony-cmd",
"assets:install %PUBLIC_DIR%": "symfony-cmd"
}
},
"extra": {
"branch-alias": {
"dev-develop": "1.0.x-dev"
},
"symfony": {
"allow-contrib": false,
"require": "6.4.*"
}
}
}