defstudio / laravel-dev-dependencies
laravel开发依赖集合
v1.4.0
2022-03-07 10:22 UTC
Requires
- friendsofphp/php-cs-fixer: ^v3.3
- infection/infection: ^0.26.0
- nunomaduro/larastan: ^2.0
- pestphp/pest: ^v1.18
- pestphp/pest-plugin-faker: ^1.0
- pestphp/pest-plugin-laravel: ^1.0
- pestphp/pest-plugin-livewire: ^v1.0
- pestphp/pest-plugin-mock: ^1.0
- pestphp/pest-plugin-parallel: ^0.3 || ^1.0
- spatie/pest-plugin-test-time: ^1.0
- spatie/x-ray: dev-main
README
安装
您可以通过Composer安装此包
composer require --dev defstudio/laravel-dev-dependencies
设置
发布资源
Composer脚本
将以下脚本添加到composer.json中
"php-cs-fixer": "php-cs-fixer fix -v --config=./.php-cs-fixer.php",
"lint": "@php-cs-fixer",
"test:lint": "@php-cs-fixer --dry-run",
"test:types": "php ./vendor/bin/phpstan analyse --ansi --memory-limit=-1",
"test:mutation": "./vendor/bin/infection --test-framework=pest --show-mutations",
"test": "php ./vendor/bin/pest --colors=always --parallel",
"x-ray": "./vendor/bin/x-ray .",
"update:snapshots": "php ./vendor/bin/pest --colors=always -d --update-snapshots",
"test:all": [
"@test:lint",
"@test:types",
"@test",
"@x-ray".
]