|
| 1 | +{ |
| 2 | + "name": "kenjis/php-unit-helper", |
| 3 | + "description": "", |
| 4 | + "license": "MIT", |
| 5 | + "authors": [ |
| 6 | + { |
| 7 | + "name": "kenjis", |
| 8 | + "email": "kenji.uui@gmail.com" |
| 9 | + } |
| 10 | + ], |
| 11 | + "require": { |
| 12 | + "php": "^7.2 || ^8.0" |
| 13 | + }, |
| 14 | + "require-dev": { |
| 15 | + "bamarni/composer-bin-plugin": "^1.4", |
| 16 | + "phpunit/phpunit": "^9.5" |
| 17 | + }, |
| 18 | + "autoload": { |
| 19 | + "psr-4": { |
| 20 | + "Kenjis\\PhpUnitHelper\\": "src/" |
| 21 | + } |
| 22 | + }, |
| 23 | + "autoload-dev": { |
| 24 | + "psr-4": { |
| 25 | + "Kenjis\\PhpUnitHelper\\": [ |
| 26 | + "tests/", |
| 27 | + "tests/Fake" |
| 28 | + ] |
| 29 | + } |
| 30 | + }, |
| 31 | + "scripts": { |
| 32 | + "setup": "php bin/setup.php", |
| 33 | + "test": "./vendor/bin/phpunit", |
| 34 | + "coverage": "php -dzend_extension=xdebug.so -dxdebug.mode=coverage ./vendor/bin/phpunit --coverage-text --coverage-html=build/coverage", |
| 35 | + "pcov": "php -dextension=pcov.so -d pcov.enabled=1 ./vendor/bin/phpunit --coverage-text --coverage-html=build/coverage --coverage-clover=coverage.xml", |
| 36 | + "cs": "./vendor/bin/phpcs", |
| 37 | + "cs-fix": "./vendor/bin/phpcbf src tests", |
| 38 | + "metrics": "./vendor/bin/phpmetrics --report-html=build/metrics --exclude=Exception src", |
| 39 | + "clean": [ |
| 40 | + "./vendor/bin/phpstan clear-result-cache", |
| 41 | + "./vendor/bin/psalm --clear-cache" |
| 42 | + ], |
| 43 | + "sa": [ |
| 44 | + "./vendor/bin/phpstan analyse -c phpstan.neon", |
| 45 | + "psalm --show-info=true" |
| 46 | + ], |
| 47 | + "tests": [ |
| 48 | + "@cs", |
| 49 | + "@sa", |
| 50 | + "@test" |
| 51 | + ], |
| 52 | + "build": [ |
| 53 | + "@clean", |
| 54 | + "@cs", |
| 55 | + "@sa", |
| 56 | + "@pcov", |
| 57 | + "@metrics" |
| 58 | + ], |
| 59 | + "post-install-cmd": "@composer bin all install --ansi", |
| 60 | + "post-update-cmd": "@composer bin all update --ansi" |
| 61 | + }, |
| 62 | + "scripts-descriptions": { |
| 63 | + "test": "Run unit tests", |
| 64 | + "coverage": "Generate test coverage report", |
| 65 | + "pcov": "Generate test coverage report (pcov)", |
| 66 | + "cs": "Check the coding style", |
| 67 | + "cs-fix": "Fix the coding style", |
| 68 | + "clean": "Delete tmp files", |
| 69 | + "sa": "Run static analysis", |
| 70 | + "metrics": "Build metrics report", |
| 71 | + "tests": "Run tests and quality checks", |
| 72 | + "build": "Build project" |
| 73 | + } |
| 74 | +} |
0 commit comments