fair-plugin/package.json
Kaspars Dambis 0966d2a75a
Add PHPStan checks (#382)
Co-authored-by: Chuck Adams <chaz@chaz.works>
2026-04-06 13:18:41 -06:00

21 lines
1.4 KiB
JSON

{
"devDependencies": {
"@wordpress/env": "^10.22.0"
},
"scripts": {
"env": "wp-env",
"cli": "wp-env run cli --env-cwd=wp-content/plugins/plugin",
"lint:php": "wp-env run cli --env-cwd=wp-content/plugins/plugin composer run lint",
"lint:php:phpcs": "wp-env run cli --env-cwd=wp-content/plugins/plugin composer run lint:phpcs",
"lint:php:phpstan": "wp-env run cli --env-cwd=wp-content/plugins/plugin composer run lint:phpstan",
"format:php": "wp-env run cli --env-cwd=wp-content/plugins/plugin composer run format",
"format:php:phpcs": "wp-env run cli --env-cwd=wp-content/plugins/plugin composer run format:phpcs",
"format:php:phpstan": "wp-env run cli --env-cwd=wp-content/plugins/plugin composer run format:phpstan",
"test:php:install-deps": "wp-env run tests-cli --env-cwd=wp-content/plugins/plugin composer install",
"test:php": "wp-env run tests-cli --env-cwd=wp-content/plugins/plugin composer run test",
"test:php:multisite": "wp-env run tests-cli --env-cwd=wp-content/plugins/plugin composer run test:multisite",
"coverage:php:single": "wp-env run tests-cli --env-cwd=wp-content/plugins/plugin composer run coverage:single",
"coverage:php:multisite": "wp-env run tests-cli --env-cwd=wp-content/plugins/plugin composer run coverage:multisite",
"coverage:php:full": "wp-env run tests-cli --env-cwd=wp-content/plugins/plugin composer run coverage:full"
}
}