five-for-the-future/composer.json
2023-11-03 17:26:09 -07:00

58 lines
1.7 KiB
JSON

{
"name": "wordpress/five-for-the-future",
"description": "",
"homepage": "https://wordpress.org/five-for-the-future",
"license": "GPL-2.0-or-later",
"support": {
"issues": "https://github.com/WordPress/five-for-the-future/issues"
},
"config": {
"platform": {
"php": "7.4"
},
"vendor-dir": "mu-plugins/vendor",
"_comment": "Work around `test:watch` timeout, see https://github.com/spatie/phpunit-watcher/issues/63#issuecomment-545633709",
"process-timeout": 0,
"allow-plugins": {
"composer/installers": true,
"dealerdirect/phpcodesniffer-composer-installer": true
},
"preferred-install": {
"wporg/*": "source"
}
},
"extra": {
"installer-paths": {
"mu-plugins/{$name}": [ "wporg/wporg-mu-plugins" ]
}
},
"repositories": [
{
"type": "vcs",
"url": "git@github.com:WordPress/wporg-mu-plugins.git"
}
],
"require": {},
"require-dev" : {
"composer/installers": "~1.0",
"wporg/wporg-mu-plugins": "dev-build",
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.0",
"wp-coding-standards/wpcs": "2.3.*",
"phpunit/phpunit": "^9",
"spatie/phpunit-watcher": "^1.23",
"yoast/phpunit-polyfills": "^1.1"
},
"scripts": {
"lint": [
"phpcs --extensions=php -s -p"
],
"format": [
"phpcbf -p"
],
"test" : "phpunit",
"_comment" : "Input won't work when running this via `composer test:watch`. If you want to use PHPUnit Watcher's interactive options then you'll need to call it directly in your terminal. See https://github.com/composer/composer/issues/5856",
"test:watch" : "phpunit-watcher watch",
"test:coverage": "php -d xdebug.mode=coverage ./mu-plugins/vendor/bin/phpunit --coverage-html coverage"
}
}