|
84 | 84 | "symfony/options-resolver": "^5.4 || ^6.0 || ^7.0" |
85 | 85 | }, |
86 | 86 | "require-dev": { |
87 | | - "azjezz/psl": "^0.0 || ^1.0 || ^2.0", |
88 | 87 | "bamarni/composer-bin-plugin": "^1.8", |
89 | 88 | "brainmaestro/composer-git-hooks": "^3.0", |
90 | | - "caseyamcl/guzzle_retry_middleware": "^2.13", |
91 | 89 | "composer/composer": "^2.8", |
92 | 90 | "ergebnis/composer-normalize": "^2.48", |
93 | 91 | "ergebnis/license": "^2.7", |
|
96 | 94 | "guanguans/monorepo-builder-worker": "^2.1", |
97 | 95 | "illuminate/collections": "^9.52 || ^10.0 || ^11.0 || ^12.0", |
98 | 96 | "illuminate/support": "^9.52 || ^10.0 || ^11.0 || ^12.0", |
99 | | - "infection/extension-installer": "^0.1", |
100 | | - "infection/infection": "^0.26", |
101 | | - "kevinrob/guzzle-cache-middleware": "^5.1 || ^6.0 || ^7.0", |
102 | 97 | "mockery/mockery": "^1.6", |
103 | | - "nette/utils": "^4.0", |
104 | 98 | "pestphp/pest": "^1.23 || ^2.0 || ^3.0 || ^4.0", |
105 | | - "pestphp/pest-plugin-faker": "^1.0 || ^2.0 || ^3.0 || ^4.0", |
| 99 | + "pestphp/pest-plugin-faker": "^1.0", |
106 | 100 | "php-mock/php-mock-phpunit": "^2.13", |
107 | 101 | "phpbench/phpbench": "^1.2", |
108 | 102 | "phpstan/extension-installer": "^1.4", |
|
148 | 142 | "allow-plugins": { |
149 | 143 | "bamarni/composer-bin-plugin": true, |
150 | 144 | "ergebnis/composer-normalize": true, |
151 | | - "infection/extension-installer": true, |
152 | 145 | "pestphp/pest-plugin": true, |
153 | 146 | "phpstan/extension-installer": true |
154 | 147 | }, |
|
173 | 166 | }, |
174 | 167 | "hooks": { |
175 | 168 | "post-merge": [ |
176 | | - "composer checks" |
| 169 | + "composer checks-required" |
177 | 170 | ], |
178 | 171 | "pre-commit": [ |
179 | | - "composer checks" |
| 172 | + "composer checks-required" |
180 | 173 | ] |
181 | 174 | } |
182 | 175 | }, |
|
199 | 192 | "benchmark": "@php ./vendor/bin/phpbench run --report=aggregate --ansi -v", |
200 | 193 | "cghooks": "@php ./vendor/bin/cghooks --ansi -v", |
201 | 194 | "checks": [ |
| 195 | + "@checks-required", |
| 196 | + "@checks-optional" |
| 197 | + ], |
| 198 | + "checks-optional": [ |
| 199 | + "@md-lint", |
| 200 | + "@zh-lint" |
| 201 | + ], |
| 202 | + "checks-required": [ |
202 | 203 | "@composer-normalize", |
203 | 204 | "@composer-validate", |
204 | 205 | "@platform-lint", |
205 | 206 | "@generate-ide-json", |
206 | 207 | "@yaml-lint", |
207 | | - "@md-lint", |
208 | | - "@zh-lint", |
209 | 208 | "@style-lint", |
210 | 209 | "@composer-dependency-analyser", |
211 | 210 | "@test", |
|
216 | 215 | "composer-bin-all-update": "@composer bin all update --ansi -v", |
217 | 216 | "composer-check-platform-reqs": "@composer check-platform-reqs --lock --ansi -v", |
218 | 217 | "composer-dependency-analyser": "@php ./vendor/bin/composer-dependency-analyser --verbose", |
219 | | - "composer-normalize": "@composer normalize --dry-run --diff --ansi -v", |
| 218 | + "composer-normalize": "@composer normalize --diff --ansi -v", |
| 219 | + "composer-normalize-dry-run": "@composer-normalize --dry-run", |
220 | 220 | "composer-require-checker": "@php ./vendor/bin/composer-require-checker check --config-file=composer-require-checker.json composer.json --ansi -v", |
221 | 221 | "composer-require-checker-json": "@php ./vendor/bin/composer-require-checker check --config-file=composer-require-checker.json composer.json --ansi -v --output=json | jq", |
222 | 222 | "composer-unused": "@php ./vendor/bin/composer-unused --ansi -v", |
|
234 | 234 | "mark-finish": "printf '\\n!\\n!\\t\\033[0;32m%s\\033[0m\\n!\\n\\n' \"Finished\"", |
235 | 235 | "mark-separate": "printf '\\n!\\n!\\t\\033[0;33m%s\\033[0m\\n!\\n\\n' \"----------------\"", |
236 | 236 | "mark-start": "printf '\\n!\\n!\\t\\033[0;36m%s\\033[0m\\n!\\n\\n' \"Started\"", |
237 | | - "md-fix": "@md-lint --fix", |
238 | | - "md-lint": "lint-md --config .lintmdrc ./*.md ./.github/ ./docs/ ./src/*/*.md", |
| 237 | + "md-fix": "@md-lint-original --fix", |
| 238 | + "md-lint": [ |
| 239 | + "if ! command -v lint-md >/dev/null 2>&1; then echo 'lint-md not found, installing...'; npm install -g @lint-md/cli; fi", |
| 240 | + "@md-lint-original" |
| 241 | + ], |
| 242 | + "md-lint-original": "lint-md --config .lintmdrc ./*.md ./.github/ ./docs/ ./src/*/*.md", |
239 | 243 | "normalized": "@composer normalize --diff --ansi -v", |
240 | 244 | "normalized-dry-run": "@normalized --dry-run", |
241 | 245 | "peck": "/opt/homebrew/opt/[email protected]/bin/php ./vendor/bin/peck check --path=src/ --config=peck.json --ansi -v", |
|
310 | 314 | "test-update-snapshots": "@pest-update-snapshots", |
311 | 315 | "trufflehog": "trufflehog git https://github.com/guanguans/notify --only-verified", |
312 | 316 | "yaml-lint": "@php ./vendor/bin/yaml-lint .github --ansi -v", |
313 | | - "zh-fix": "@zh-lint --fix", |
314 | | - "zh-lint": "zhlint {./,docs/,docs/**/}*-zh_CN.md" |
| 317 | + "zh-fix": "@zh-lint-original --fix", |
| 318 | + "zh-lint": [ |
| 319 | + "if ! command -v zhlint >/dev/null 2>&1; then echo 'zhlint not found, installing...'; npm install -g zhlint; fi", |
| 320 | + "@zh-lint-original" |
| 321 | + ], |
| 322 | + "zh-lint-original": "zhlint {./,docs/,docs/**/}*-zh_CN.md" |
315 | 323 | }, |
316 | 324 | "scripts-aliases": { |
317 | 325 | "lint": [ |
|
0 commit comments