49 lines
1.3 KiB
JSON
49 lines
1.3 KiB
JSON
|
{
|
||
|
"require": {
|
||
|
"php": "^8.3",
|
||
|
"monolog/monolog": "^3.7"
|
||
|
},
|
||
|
"require-dev": {
|
||
|
"vimeo/psalm": "^5.15",
|
||
|
"phpstan/phpstan": "^1.10",
|
||
|
"phpunit/phpunit": "^10.3",
|
||
|
"phpmetrics/phpmetrics": "^2.8",
|
||
|
"rector/rector": "^1.2"
|
||
|
},
|
||
|
"autoload": {
|
||
|
"psr-4": {
|
||
|
"SimAVRPHP\\": "src/"
|
||
|
}
|
||
|
},
|
||
|
"scripts": {
|
||
|
"test": "phpunit",
|
||
|
"document": "phpDocumentor",
|
||
|
"benchmark": "phpbench run --report=default --output=build-artifact",
|
||
|
"metrics": "vendor/bin/phpmetrics --config=phpmetrics.json",
|
||
|
"lint": [
|
||
|
"phplint",
|
||
|
"phpcs",
|
||
|
"phpmd src/,tests/ text phpmd.ruleset.xml"
|
||
|
],
|
||
|
"analyze": [
|
||
|
"@analyze-phpstan",
|
||
|
"@analyze-psalm",
|
||
|
"@analyze-rector"
|
||
|
],
|
||
|
"analyze-phpstan":"vendor/bin/phpstan analyze --error-format=raw",
|
||
|
"analyze-psalm": "vendor/bin/psalm --no-cache --show-info=true",
|
||
|
"analyze-rector": "vendor/bin/rector --dry-run",
|
||
|
"html": [
|
||
|
"pandoc -s README.md -o output/README.html"
|
||
|
],
|
||
|
"all": [
|
||
|
"@test",
|
||
|
"@lint",
|
||
|
"@analyze",
|
||
|
"@document",
|
||
|
"@metrics",
|
||
|
"@html"
|
||
|
]
|
||
|
}
|
||
|
}
|