-
Notifications
You must be signed in to change notification settings - Fork 0
/
composer.json
165 lines (165 loc) · 5.61 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
{
"name": "jpmschuler/redirectmissingsite",
"description": "Allow 404 handling for unconfigured domains/sites",
"license": [
"GPL-2.0+"
],
"type": "typo3-cms-extension",
"authors": [
{
"name": "J. Peter M. Schuler",
"email": "j.peter.m.schuler@uni-due.de"
}
],
"support": {
"issues": "https://github.com/jpmschuler/TYPO3-redirectmissingsite/issues",
"source": "https://github.com/jpmschuler/TYPO3-redirectmissingsite"
},
"require": {
"php": "^8.1",
"typo3/cms-core": "^v12.4.4",
"typo3/cms-frontend": "^v12.4.4"
},
"require-dev": {
"ext-json": "*",
"ergebnis/composer-normalize": "^2.28.3",
"friendsofphp/php-cs-fixer": "^v3.14.1",
"helmich/typo3-typoscript-lint": "^v3.1.0",
"micheh/phpcs-gitlab": "^1.1.0",
"michielroos/typo3scan": "^1.7.7",
"saschaegerer/phpstan-typo3": "^1.8.5",
"sebastian/phpcpd": "^6.0.3",
"squizlabs/php_codesniffer": "^3.7.2",
"ssch/typo3-rector": "^1.2.2",
"typo3/minimal": "^v12.4.0",
"typo3/tailor": "^1.5.0"
},
"prefer-stable": true,
"autoload": {
"psr-4": {
"Jpmschuler\\RedirectMissingSite\\": "Classes/"
}
},
"config": {
"allow-plugins": {
"typo3/class-alias-loader": true,
"typo3/cms-composer-installers": true,
"ergebnis/composer-normalize": true,
"phpstan/extension-installer": true
},
"bin-dir": ".Build/bin",
"preferred-install": {
"*": "dist"
},
"sort-packages": true,
"vendor-dir": ".Build/vendor"
},
"extra": {
"codequality": {
"phpstan-level": "6",
"typo3-deprecations": "11"
},
"typo3/cms": {
"app-dir": ".Build",
"extension-key": "redirectmissingsite",
"web-dir": ".Build/public"
}
},
"scripts": {
"codequality": [
"@lint:php-cs-fixer",
"@lint:all",
"@rector:dry-run",
"@test:deprecations"
],
"codequality:autofix": [
"@lint:php-cs-fixer",
"@lint:phpcbf",
"@rector"
],
"develop": [
"Composer\\Config::disableProcessTimeout",
"php-watcher foo --exec 'composer run develop:deploy' --signal SIGTERM --ignore .Build --ext=php,yaml,html,txt,typoscript,css,js,xlf"
],
"develop:deploy": "[ -f ./.deploy.sh ] && ./.deploy.sh",
"git:precommit": [
"echo 'running precommit checks...'",
"@lint:php:onlyerrors",
"@lint:php-cs-fixer:dry-run:onlyerrors",
"@lint:phpcs:dry-run:onlyerrors",
"@lint:phpcpd:onlyerrors"
],
"lint:all": [
"@lint:php",
"@lint:php-cs-fixer:dry-run",
"@lint:phpcs:dry-run",
"@lint:phpstan"
],
"lint:php": "find *.php Classes Configuration -name '*.php' -print0 | xargs -0 -n 1 -P 4 php -l",
"lint:php-cs-fixer": "php-cs-fixer fix",
"lint:php-cs-fixer:dry-run": "php-cs-fixer fix --dry-run --using-cache=no --diff",
"lint:php-cs-fixer:dry-run:onlyerrors": "php-cs-fixer fix --dry-run --using-cache=no --diff > /dev/null",
"lint:php:onlyerrors": "find *.php Classes Configuration -name '*.php' -print0 | xargs -0 -n 1 -P 4 php -l > /dev/null",
"lint:phpcbf": "phpcbf Classes Configuration",
"lint:phpcs": "@lint:phpcbf",
"lint:phpcs:dry-run": "phpcs Classes Configuration",
"lint:phpcs:dry-run:ci": "phpcs --report=full --report-\\\\Micheh\\\\PhpCodeSniffer\\\\Report\\\\Gitlab=report.phpcs.json Classes Configuration",
"lint:phpcs:dry-run:onlyerrors": "phpcs -n Classes Configuration",
"lint:phpstan": "phpstan --level=$(composer config extra.codequality.phpstan-level 2> /dev/null || echo 5) --memory-limit=1G analyse",
"lint:phpstan:ci": "phpstan --level=$(composer config extra.codequality.phpstan-level 2> /dev/null || echo 5) --memory-limit=1G --no-progress analyse",
"lint:typoscript": "typoscript-lint",
"post-update": "@post-install",
"prepare-release": [
"rm .gitignore",
"rm -rf .Build",
"rm -rf .ddev",
"rm -rf .github",
"rm -rf .gitlab",
"rm -rf Tests",
"rm -rf tools",
"rm .editorconfig",
"rm .php-cs-fixer.php",
"rm .phpcs.xml",
"rm GitVersion.yml",
"rm rector.php",
"rm typoscript-lint.php"
],
"pretest:deprecations": [
"mkdir -p .Build/$(composer config extra.typo3/cms.extension-key)",
"find ./* -mindepth 0 -maxdepth 0 -not -path './node_modules' -exec cp -r {} .Build/$(composer config extra.typo3/cms.extension-key)/ \\;"
],
"rector": [
"rector process --config=rector.php . ",
"@lint:php-cs-fixer"
],
"rector:dry-run": "rector process --config=rector.php --dry-run -- .",
"rector:dry-run:ci": "rector process --config=rector.php --dry-run --output-format json -- . > report.rector.json",
"rector:force": "rector process .",
"test": [
"@lint:php-cs-fixer",
"@test:unit"
],
"test:deprecations": [
"@pretest:deprecations",
"@php typo3scan scan --target $(composer config extra.codequality.typo3-deprecations 2> /dev/null || echo 11) -- .Build/$(composer config extra.typo3/cms.extension-key) || true"
],
"test:deprecations:11LTS:ci": [
"@pretest:deprecations",
"@php typo3scan scan --target 11 --format junit -- .Build/$(composer config extra.typo3/cms.extension-key) > $(composer config extra.typo3/cms.extension-key)-deprecations-11LTS.xml || true"
],
"test:deprecations:ci": [
"@pretest:deprecations",
"@php typo3scan scan --target $(composer config extra.codequality.typo3-deprecations 2> /dev/null || echo 11) --format junit -- .Build/$(composer config extra.typo3/cms.extension-key) > report.$(composer config extra.typo3/cms.extension-key)-deprecations-10LTS.xml || true",
"@test:deprecations:11LTS:ci"
],
"test:unit": "echo 'not implemented'",
"typo3-extdev-helper-init": [
"@php .Build/vendor/jpmschuler/typo3-extdev-helper/Scripts/Init.php"
],
"version:set": [
"@putenv TYPO3_DISABLE_DOCS_VERSION_UPDATE=1",
"@version:set:ext_emconf.php"
],
"version:set:ext_emconf.php": "tailor set-version"
}
}