-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathcomposer.json
201 lines (201 loc) · 6.65 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
{
"name": "oliverklee/oelib",
"description": "Useful stuff for TYPO3 extension development: helper functions for unit testing, templating and automatic configuration checks.",
"license": "GPL-2.0-or-later",
"type": "typo3-cms-extension",
"keywords": [
"extension",
"library",
"templating"
],
"authors": [
{
"name": "Oliver Klee",
"email": "[email protected]",
"homepage": "https://www.oliverklee.de",
"role": "developer"
}
],
"homepage": "https://www.oliverklee.de/typo3-services/typo3-extensions/",
"support": {
"issues": "https://github.com/oliverklee/ext-oelib/issues",
"source": "https://github.com/oliverklee/ext-oelib"
},
"require": {
"php": "^7.4.0 || ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0",
"ext-dom": "*",
"ext-json": "*",
"ext-libxml": "*",
"ext-zip": "*",
"doctrine/dbal": "^2.13.8 || ^3.9",
"psr/log": "^1.0 || ^2.0 || ^3.0",
"symfony/polyfill-php80": "^1.31.0",
"typo3/cms-core": "^11.5.41 || ^12.4.24",
"typo3/cms-extbase": "^11.5.41 || ^12.4.24",
"typo3/cms-fluid": "^11.5.41 || ^12.4.24",
"typo3/cms-frontend": "^11.5.41 || ^12.4.24",
"typo3fluid/fluid": "^2.7.4 || ^4.0.2"
},
"require-dev": {
"ergebnis/composer-normalize": "2.45.0",
"friendsofphp/php-cs-fixer": "3.70.2",
"phpstan/extension-installer": "1.4.3",
"phpstan/phpstan": "1.12.11",
"phpstan/phpstan-phpunit": "1.4.1",
"phpstan/phpstan-strict-rules": "1.6.1",
"phpunit/phpunit": "9.6.22",
"rector/type-perfect": "1.0.0",
"saschaegerer/phpstan-typo3": "1.10.2",
"sjbr/static-info-tables": "^11.5.5 || ^12.4.3",
"squizlabs/php_codesniffer": "3.11.3",
"ssch/typo3-rector": "2.12.0",
"ssch/typo3-rector-testing-framework": "2.0.1",
"symfony/console": "5.4.47 || 6.4.17 || 7.2.1",
"symfony/translation": "5.4.45 || 6.4.13 || 7.2.2",
"symfony/yaml": "5.4.45 || 6.4.13 || 7.2.0",
"typo3/coding-standards": "0.6.1",
"typo3/testing-framework": "7.1.1",
"webmozart/assert": "^1.11.0"
},
"replace": {
"typo3-ter/oelib": "self.version"
},
"prefer-stable": true,
"autoload": {
"psr-4": {
"OliverKlee\\Oelib\\": "Classes/"
}
},
"autoload-dev": {
"psr-4": {
"OliverKlee\\Oelib\\Tests\\": "Tests/"
}
},
"config": {
"allow-plugins": {
"ergebnis/composer-normalize": true,
"phpstan/extension-installer": true,
"typo3/class-alias-loader": true,
"typo3/cms-composer-installers": true
},
"lock": false,
"preferred-install": {
"*": "dist"
},
"process-timeout": 1000,
"sort-packages": true,
"vendor-dir": ".Build/vendor"
},
"extra": {
"branch-alias": {
"dev-main": "6.1.x-dev"
},
"typo3/cms": {
"extension-key": "oelib",
"web-dir": ".Build/public"
}
},
"scripts": {
"ci": [
"@ci:static",
"@ci:dynamic"
],
"ci:composer:normalize": "@composer normalize --no-check-lock --dry-run",
"ci:coverage": [
"@ci:coverage:unit",
"@ci:coverage:functional"
],
"ci:coverage:functional": [
"@coverage:create-directories",
"find 'Tests/Functional' -wholename '*Test.php' | parallel --gnu 'echo; echo \"Running functional test suite {}\"; .Build/vendor/bin/phpunit -c Configuration/FunctionalTests.xml --whitelist Classes --coverage-php=\".Build/coverage/{}.cov\" {}';"
],
"ci:coverage:merge": [
"@coverage:create-directories",
"tools/phpcov merge --clover=./build/logs/clover.xml ./.Build/coverage/"
],
"ci:coverage:unit": [
"@coverage:create-directories",
"phpunit -c Configuration/UnitTests.xml --whitelist Classes --coverage-php=.Build/coverage/unit.cov Tests/Unit"
],
"ci:dynamic": [
"@ci:tests"
],
"ci:php:cs-fixer": "php-cs-fixer fix --config .php-cs-fixer.php -v --dry-run --diff",
"ci:php:lint": "find *.php Classes Configuration Tests -name '*.php' -print0 | xargs -0 -n 1 -P 4 php -l",
"ci:php:rector": "rector --dry-run",
"ci:php:sniff": "phpcs Classes Configuration Tests",
"ci:php:stan": "phpstan --no-progress",
"ci:static": [
"@ci:composer:normalize",
"@ci:php:lint",
"@ci:php:sniff",
"@ci:php:cs-fixer",
"@ci:php:rector",
"@ci:php:stan",
"@ci:xliff:lint"
],
"ci:tests": [
"@ci:tests:unit",
"@ci:tests:functional"
],
"ci:tests:functional": "find 'Tests/Functional' -wholename '*Test.php' | parallel --gnu 'echo; echo \"Running functional test suite {}\"; .Build/vendor/bin/phpunit -c Configuration/FunctionalTests.xml {}';",
"ci:tests:unit": "phpunit -c Configuration/UnitTests.xml Tests/Unit",
"ci:xliff:lint": "php Build/bin/console lint:xliff Resources/Private/Language",
"coverage:create-directories": "mkdir -p build/logs .Build/coverage",
"fix": [
"@fix:composer",
"@fix:php"
],
"fix:composer": "@composer normalize --no-check-lock",
"fix:php": [
"@fix:php:rector",
"@fix:php:cs",
"@fix:php:sniff"
],
"fix:php:cs": "php-cs-fixer fix --config .php-cs-fixer.php",
"fix:php:rector": "rector",
"fix:php:sniff": "phpcbf Classes Configuration Tests",
"phpstan:baseline": "phpstan --generate-baseline=phpstan-baseline.neon",
"prepare-release": [
"rm -rf .Build",
"rm -rf .github",
"rm -rf .phive",
"rm -rf Build",
"rm -rf Tests",
"rm -rf tools",
"rm .editorconfig",
"rm .gitattributes",
"rm .gitignore",
"rm .php-cs-fixer.php",
"rm Configuration/FunctionalTests.xml",
"rm Configuration/UnitTests.xml",
"rm composer.lock",
"rm crowdin.yml",
"rm phpcs.xml.dist",
"rm phpstan-baseline.neon",
"rm phpstan.neon",
"rm rector.php"
]
},
"scripts-descriptions": {
"ci": "Runs all dynamic and static code checks.",
"ci:composer:normalize": "Checks the composer.json.",
"ci:coverage": "Generates the code coverage report for unit and functional tests.",
"ci:coverage:functional": "Generates the code coverage report for functional tests.",
"ci:coverage:merge": "Merges the code coverage reports for unit and functional tests.",
"ci:coverage:unit": "Generates the code coverage report for unit tests.",
"ci:php:rector": "Checks for code for changes by Rector.",
"ci:php:stan": "Checks the types with PHPStan.",
"ci:static": "Runs all static code analysis checks for the code.",
"ci:xliff:lint": "Lints the XLIFF files.",
"coverage:create-directories": "Creates the directories needed for recording and merging the code coverage reports.",
"fix": "Runs all automatic code style fixes.",
"fix:composer": "Normalizes all composer.json files.",
"fix:php": "Runs all fixers for the PHP code.",
"fix:php:cs": "Fixes the code style with PHP-CS-Fixer.",
"fix:php:rector": "Updates the code with Rector.",
"fix:php:sniff": "Fixes the code style with PHP_CodeSniffer.",
"phpstan:baseline": "Updates the PHPStan baseline file to match the code.",
"prepare-release": "Removes development-only files in preparation of a TER release."
}
}