Composer: add scripts for dev

This commit is contained in:
2021-01-20 14:43:46 +03:00
parent c5b0d3b986
commit fdd65cb547

View File

@ -36,17 +36,29 @@
"minimum-stability": "dev", "minimum-stability": "dev",
"prefer-stable": true, "prefer-stable": true,
"scripts": { "scripts": {
"csfix": [
"vendor/bin/php-cs-fixer fix"
],
"norm": "composer normalize --no-check-lock",
"norm-check": "composer normalize --diff --dry-run",
"phpcs": [ "phpcs": [
"vendor/bin/php-cs-fixer fix --verbose --diff --dry-run" "vendor/bin/php-cs-fixer fix --verbose --diff --dry-run"
], ],
"phpstan": [ "phpstan": [
"vendor/bin/phpstan analyse" "vendor/bin/phpstan analyse"
], ],
"phpunit": [
"vendor/bin/phpunit --verbose"
],
"psalm": [ "psalm": [
"vendor/bin/psalm" "vendor/bin/psalm"
], ],
"tests": [ "test": [
"vendor/bin/phpunit --verbose" "@norm-check",
"@phpcs",
"@phpstan",
"@psalm",
"@phpunit"
] ]
} }
} }