|
7 | 7 | { |
8 | 8 | "name": "Dejan Angelov", |
9 | 9 | "homepage": "https://angelovdejan.me" |
| 10 | + }, |
| 11 | + { |
| 12 | + "name": "Daycry", |
| 13 | + "homepage": "https://daycryweb.blogspot.com" |
10 | 14 | } |
11 | 15 | ], |
12 | 16 | "require": { |
|
16 | 20 | "require-dev": { |
17 | 21 | "phpunit/phpunit": "^10.0 || ^11.0 || ^12.0", |
18 | 22 | "squizlabs/php_codesniffer": "^3.7", |
19 | | - "phpstan/phpstan": "^2.0" |
| 23 | + "phpstan/phpstan": "^2.0", |
| 24 | + "friendsofphp/php-cs-fixer": "^3.49", |
| 25 | + "nexusphp/cs-config": "^3.21", |
| 26 | + "phpstan/extension-installer": "^1.3", |
| 27 | + "phpstan/phpstan-deprecation-rules": "^2.0", |
| 28 | + "phpstan/phpstan-phpunit": "^2.0", |
| 29 | + "phpstan/phpstan-strict-rules": "^2.0", |
| 30 | + "rector/rector": "^2" |
20 | 31 | }, |
21 | 32 | "autoload": { |
22 | 33 | "psr-4": { |
|
27 | 38 | "psr-4": { |
28 | 39 | "Angelov\\PHPUnitPHPVcr\\Tests\\": "tests/" |
29 | 40 | } |
30 | | - } |
| 41 | + }, |
| 42 | + "config": { |
| 43 | + "optimize-autoloader": true, |
| 44 | + "preferred-install": "dist", |
| 45 | + "sort-packages": true, |
| 46 | + "allow-plugins": { |
| 47 | + "phpstan/extension-installer": true |
| 48 | + } |
| 49 | + }, |
| 50 | + "scripts": { |
| 51 | + "post-update-cmd": [ |
| 52 | + "bash admin/setup.sh" |
| 53 | + ], |
| 54 | + "analyze": [ |
| 55 | + "Composer\\Config::disableProcessTimeout", |
| 56 | + "phpstan analyze", |
| 57 | + "rector process --dry-run" |
| 58 | + ], |
| 59 | + "ci": [ |
| 60 | + "Composer\\Config::disableProcessTimeout", |
| 61 | + "@cs", |
| 62 | + "@test" |
| 63 | + ], |
| 64 | + "cs": "php-cs-fixer fix --ansi --verbose --dry-run --diff", |
| 65 | + "cs-fix": "php-cs-fixer fix --ansi --verbose --diff", |
| 66 | + "mutate": "infection --threads=2 --skip-initial-tests --coverage=build/phpunit", |
| 67 | + "sa": "@analyze", |
| 68 | + "style": "@cs-fix", |
| 69 | + "test": [ |
| 70 | + "Composer\\Config::disableProcessTimeout", |
| 71 | + "vendor/bin/phpunit" |
| 72 | + ] |
| 73 | + } |
31 | 74 | } |
0 commit comments