|
68 | 68 | "ergebnis/license": "^2.7", |
69 | 69 | "ergebnis/php-cs-fixer-config": "^6.57", |
70 | 70 | "ergebnis/rector-rules": "^1.7", |
71 | | - "guanguans/monorepo-builder-worker": "^2.1", |
| 71 | + "guanguans/php-cs-fixer-custom-fixers": "^1.0", |
72 | 72 | "itsgoingd/clockwork": "^5.3", |
73 | 73 | "laradumps/laradumps": "^4.6", |
74 | 74 | "laravel/facade-documenter": "dev-main", |
|
108 | 108 | "yamadashy/phpstan-friendly-formatter": "^1.3" |
109 | 109 | }, |
110 | 110 | "conflict": { |
111 | | - "pestphp/pest": "^4.0", |
112 | | - "symplify/monorepo-builder": "^12.0" |
| 111 | + "pestphp/pest": "^4.0" |
113 | 112 | }, |
114 | 113 | "suggest": { |
115 | 114 | "barryvdh/laravel-debugbar": "Output SQL scores to Laravel DebugBar.", |
|
199 | 198 | "@testbench:clear", |
200 | 199 | "@testbench:prepare" |
201 | 200 | ], |
202 | | - "actionlint": [ |
203 | | - "if ! command -v actionlint >/dev/null 2>&1; then echo 'actionlint not found, installing...'; brew install actionlint; fi", |
204 | | - "actionlint -ignore=SC2035 -ignore=SC2086 -color -oneline -verbose" |
205 | | - ], |
| 201 | + "actionlint": "actionlint -ignore=SC2035 -ignore=SC2086 -color -oneline -verbose", |
206 | 202 | "blade-formatter": "blade-formatter resources/views/*.blade.php resources/views/**/*.blade.php --ignore-path= --php-version=8.1 --progress", |
207 | 203 | "blade-formatter:check-formatted": "@blade-formatter --check-formatted", |
208 | 204 | "blade-formatter:write": "@blade-formatter --write", |
209 | 205 | "cghooks": "@php vendor/bin/cghooks --ansi -vv", |
210 | | - "cghooks:remove": [ |
211 | | - "@php -r \"file_exists('.git/hooks/post-merge') and rename('.git/hooks/post-merge', '.git/hooks/post-merge.sample');\"", |
212 | | - "@php -r \"file_exists('.git/hooks/pre-commit') and rename('.git/hooks/pre-commit', '.git/hooks/pre-commit.sample');\"" |
213 | | - ], |
214 | | - "cghooks:try": [ |
215 | | - "@putenv:php", |
216 | | - "[ ! -f \"vendor/bin/cghooks\" ] && exit 0 || $PHP81 vendor/bin/cghooks --ansi -vv" |
217 | | - ], |
218 | 206 | "cghooks:upsert": [ |
219 | 207 | "@cghooks add --ignore-lock", |
220 | 208 | "@cghooks update" |
|
230 | 218 | "@composer:normalize-dry-run", |
231 | 219 | "@detect-collisions", |
232 | 220 | "@facade:lint", |
| 221 | + "@jack:breakpoint", |
233 | 222 | "@jack:open-versions-dry-run", |
234 | 223 | "@jack:raise-to-installed-dry-run", |
235 | 224 | "@phpmnd", |
|
252 | 241 | "checks:required": [ |
253 | 242 | "@putenv:xdebug-off", |
254 | 243 | "@php-cs-fixer:fix-dry-run", |
255 | | - "@pest:bail" |
| 244 | + "@pest" |
256 | 245 | ], |
257 | 246 | "class-leak": "@php vendor/bin/class-leak --ansi -vv", |
258 | 247 | "class-leak:check": "@class-leak check config/ src/ --skip-type=Guanguans\\LaravelSoar\\Contracts\\OutputContract --skip-suffix=InvalidArgumentException --skip-path=Support/Rectors/", |
|
296 | 285 | "$PHP82 vendor/bin/grumphp run --ansi -vv" |
297 | 286 | ], |
298 | 287 | "jack": "@php vendor/bin/jack --ansi -vv", |
299 | | - "jack:breakpoint": "@jack breakpoint --limit=5", |
| 288 | + "jack:breakpoint": "@jack breakpoint --limit=7", |
300 | 289 | "jack:breakpoint-dev": "@jack:breakpoint --dev", |
301 | 290 | "jack:open-versions": "@jack open-versions --limit=99", |
302 | 291 | "jack:open-versions-dev": "@jack:open-versions --dev", |
|
328 | 317 | "mago:lint-dry-run": "@mago:lint --dry-run", |
329 | 318 | "mago:lint-list-rules": "@mago lint --list-rules", |
330 | 319 | "mago:lint-semantics-only": "@mago lint --semantics-only", |
331 | | - "monorepo-builder": "@php vendor/bin/monorepo-builder --ansi -vv", |
| 320 | + "monorepo-builder": [ |
| 321 | + "@putenv:php", |
| 322 | + "$PHP82 vendor/bin/monorepo-builder --ansi -vv" |
| 323 | + ], |
332 | 324 | "monorepo-builder:release": "@monorepo-builder release", |
333 | 325 | "monorepo-builder:release-1.0.0-BETA1": "@monorepo-builder:release 1.0.0-BETA1", |
334 | 326 | "monorepo-builder:release-1.0.0-BETA1-dry-run": "@monorepo-builder:release-1.0.0-BETA1 --dry-run", |
|
350 | 342 | "@php vendor/bin/pest --colors=always --min=80 --coverage --profile", |
351 | 343 | "@putenv:xdebug-off" |
352 | 344 | ], |
353 | | - "pest:bail": "@pest --bail", |
354 | | - "pest:compact": "@pest --compact", |
355 | 345 | "pest:coverage": "@pest --coverage-html=.build/phpunit/ --coverage-clover=.build/phpunit/clover.xml", |
356 | | - "pest:disable-coverage-ignore": "@pest --disable-coverage-ignore", |
357 | 346 | "pest:highest": [ |
358 | 347 | "@putenv:php", |
359 | 348 | "@putenv:xdebug-on", |
|
367 | 356 | "pest:type-coverage": "@pest --type-coverage", |
368 | 357 | "pest:update-snapshots": "@pest --update-snapshots", |
369 | 358 | "php-cs-fixer": "@php vendor/bin/php-cs-fixer --ansi -vv", |
370 | | - "php-cs-fixer:check": "@php-cs-fixer check --show-progress=dots --diff", |
371 | | - "php-cs-fixer:describe": "@php-cs-fixer describe", |
| 359 | + "php-cs-fixer:custom": "@php-cs-fixer --config=.php-cs-fixer-custom.php", |
| 360 | + "php-cs-fixer:custom-check": "@php-cs-fixer:custom check --show-progress=dots --diff", |
| 361 | + "php-cs-fixer:custom-fix": "@php-cs-fixer:custom fix --show-progress=dots --diff", |
| 362 | + "php-cs-fixer:custom-fix-dry-run": "@php-cs-fixer:custom-fix --dry-run", |
| 363 | + "php-cs-fixer:custom-list-files": "@php-cs-fixer:custom list-files", |
372 | 364 | "php-cs-fixer:fix": "@php-cs-fixer fix --show-progress=dots --diff", |
373 | 365 | "php-cs-fixer:fix-dry-run": "@php-cs-fixer:fix --dry-run", |
374 | 366 | "php-cs-fixer:list-files": "@php-cs-fixer list-files", |
|
379 | 371 | "for DIR in src/ tests/; do find $DIR -type f -name '*.php' -type f ! -name 'xxx.php' -exec $PHP81 -l {} \\; 2>&1 | (! grep -v '^No syntax errors detected'); done" |
380 | 372 | ], |
381 | 373 | "phpbench": "@php vendor/bin/phpbench run --report=aggregate --ansi -vv", |
382 | | - "phpcs": "@php vendor/bin/phpcs config/ src/ --extensions=php --ignore=*/vendor/* --parallel=8 --cache --colors -n -p -s -v", |
383 | | - "phpcs:compatibility": "@phpcs --standard=PHPCompatibility --exclude=PHPCompatibility.FunctionDeclarations.NewClosure --runtime-set testVersion 8.5-", |
384 | | - "phpcs:help": "@phpcs --help", |
385 | | - "phpcs:i": "@phpcs -i", |
386 | 374 | "phpmnd": "@php vendor/bin/phpmnd src/ --exclude-path=Support/helpers.phpp --ignore-numbers=2,-1 --hint --progress --ansi -vv", |
387 | 375 | "phpstan": "@php vendor/bin/phpstan --ansi -vv", |
388 | 376 | "phpstan:analyse": "@phpstan analyse", |
389 | | - "phpstan:analyse-fix": "@phpstan:analyse --fix", |
390 | 377 | "phpstan:analyse-generate-baseline": "@phpstan:analyse --generate-baseline --allow-empty-baseline", |
391 | 378 | "phpstan:analyse-split-baseline": [ |
392 | 379 | "@phpstan:analyse --generate-baseline=baselines/loader.neon --allow-empty-baseline", |
|
399 | 386 | "@putenv:xdebug-off", |
400 | 387 | "@php vendor/bin/pint --ansi -vv" |
401 | 388 | ], |
402 | | - "pint:bail": "@pint --bail", |
403 | | - "pint:dirty": "@pint --dirty", |
404 | | - "pint:dirty-bail": "@pint:dirty --bail", |
405 | | - "pint:dirty-test": "@pint:dirty --test", |
406 | 389 | "pint:test": "@pint --test", |
407 | 390 | "putenv:composer-memory-unlimited": "@putenv COMPOSER_MEMORY_LIMIT=-1", |
408 | 391 | "putenv:php": [ |
|
419 | 402 | "@putenv XDEBUG_MODE=coverage,debug", |
420 | 403 | "@putenv XDEBUG_SESSION=1" |
421 | 404 | ], |
422 | | - "readme-lint": "@php readme-lint --ansi -vv", |
423 | 405 | "rector": "@php vendor/bin/rector", |
424 | 406 | "rector:custom-rule": "@rector custom-rule", |
425 | 407 | "rector:list-rules": "@rector list-rules", |
|
429 | 411 | "rector:process-dry-run": "@rector:process --dry-run", |
430 | 412 | "rector:process-only": "@rector:process-clear-cache --only=Guanguans\\LaravelSoar\\Support\\Rectors\\AddHasOptionsDocCommentRector", |
431 | 413 | "rector:process-only-dry-run": "@rector:process-only --dry-run", |
432 | | - "rector:process-soar-options": "@rector:process-clear-cache --config=rector-options.php", |
433 | | - "rector:process-soar-options-dry-run": "@rector:process-soar-options --dry-run", |
434 | | - "rector:setup-ci": "@rector setup-ci", |
435 | 414 | "rule-doc-generator": [ |
436 | 415 | "@putenv:php", |
437 | 416 | "$PHP82 rule-doc-generator --ansi -vv" |
|
478 | 457 | "todo-lint": "! git --no-pager grep --extended-regexp --ignore-case 'todo|fixme' -- '*.php' ':!*.blade.php' ':(exclude)resources/'", |
479 | 458 | "touch:database-sqlite": "@php -r \"file_exists('vendor/orchestra/testbench-core/laravel/database/database.sqlite') || touch('vendor/orchestra/testbench-core/laravel/database/database.sqlite');\"", |
480 | 459 | "trufflehog": "trufflehog git https://github.com/guanguans/laravel-soar --only-verified", |
481 | | - "user:composer": [ |
482 | | - "@putenv:composer-memory-unlimited", |
483 | | - "@putenv:xdebug-off", |
484 | | - "@composer --ansi -vv" |
485 | | - ], |
486 | | - "user:php": [ |
487 | | - "@putenv:xdebug-off", |
488 | | - "@php -d xdebug.mode=off" |
489 | | - ], |
490 | 460 | "var-dump-server:cli": "@php vendor/bin/var-dump-server --ansi -vv", |
491 | 461 | "var-dump-server:html": [ |
492 | 462 | "@composer-config:disable-process-timeout", |
|
496 | 466 | "@php vendor/bin/var-dump-server --ansi -v --format=html > .build/dump.html" |
497 | 467 | ], |
498 | 468 | "vendor-patches": "@php vendor/bin/vendor-patches generate --ansi -vv", |
499 | | - "vhs": [ |
500 | | - "@cghooks:remove", |
501 | | - "vhs < laravel-soar.tape", |
502 | | - "@cghooks:upsert" |
503 | | - ], |
| 469 | + "vhs": "vhs < laravel-soar.tape", |
504 | 470 | "yaml-lint": "@php vendor/bin/yaml-lint .github/ *.yaml --ansi -vv", |
505 | 471 | "zhlint": [ |
506 | 472 | "if ! command -v zhlint >/dev/null 2>&1; then echo 'zhlint not found, installing...'; npm install -g zhlint; fi", |
507 | 473 | "@zhlint:prototype" |
508 | 474 | ], |
509 | 475 | "zhlint:fix": "@zhlint:prototype --fix", |
510 | 476 | "zhlint:prototype": "zhlint {,docs/,docs/**/}*-zh_CN.md", |
511 | | - "zizmor": [ |
512 | | - "if ! command -v zizmor >/dev/null 2>&1; then echo 'zizmor not found, installing...'; brew install zizmor; fi", |
513 | | - "zizmor .github/ --verbose" |
514 | | - ] |
| 477 | + "zizmor": "zizmor .github/ --verbose" |
515 | 478 | }, |
516 | 479 | "scripts-aliases": { |
517 | 480 | "pest": [ |
|
0 commit comments