{
|
|
"name": "johnbillion/extended-cpts",
|
|
"description": "A library which provides extended functionality to WordPress custom post types and taxonomies.",
|
|
"homepage": "https://github.com/johnbillion/extended-cpts/",
|
|
"license": "GPL-2.0+",
|
|
"authors": [
|
|
{
|
|
"name": "John Blackbourn",
|
|
"homepage": "https://johnblackbourn.com/"
|
|
}
|
|
],
|
|
"config": {
|
|
"sort-packages": true,
|
|
"preferred-install": "dist"
|
|
},
|
|
"extra": {
|
|
"wordpress-install-dir": "tests/wordpress"
|
|
},
|
|
"require": {
|
|
"php": "^7.0"
|
|
},
|
|
"require-dev": {
|
|
"automattic/phpcs-neutron-standard": "^1.5",
|
|
"dealerdirect/phpcodesniffer-composer-installer": "^0.5",
|
|
"johnbillion/falsey-assertequals-detector": "^2",
|
|
"johnbillion/php-docs-standards": "^1",
|
|
"phpcompatibility/phpcompatibility-wp": "^2",
|
|
"phpunit/phpunit": "^6",
|
|
"roots/wordpress": "*",
|
|
"vlucas/phpdotenv": "^3",
|
|
"wp-cli/wp-cli-bundle": "^2.1",
|
|
"wp-coding-standards/wpcs": "~2.1.0",
|
|
"wp-phpunit/wp-phpunit": "*"
|
|
},
|
|
"scripts": {
|
|
"post-update-cmd": [
|
|
"@php -r \"! file_exists( 'tests/.env' ) && copy( 'tests/.env.dist', 'tests/.env' );\""
|
|
],
|
|
"test:cs": [
|
|
"vendor/bin/phpcs -nps --colors --report-code --report-summary --report-width=80 --cache=tests/cache/phpcs ."
|
|
],
|
|
"test:ut": [
|
|
"vendor/bin/wp db reset --yes --path=tests/wordpress #",
|
|
"export WP_MULTISITE=0 && vendor/bin/phpunit --verbose --colors=always --exclude-group=ms-required",
|
|
"export WP_MULTISITE=1 && vendor/bin/phpunit --verbose --colors=always --exclude-group=ms-excluded"
|
|
],
|
|
"test": [
|
|
"@test:cs",
|
|
"@test:ut"
|
|
]
|
|
},
|
|
"autoload": {
|
|
"psr-4": {
|
|
"ExtCPTs\\Tests\\": "tests/phpunit"
|
|
},
|
|
"files": [
|
|
"extended-cpts.php"
|
|
]
|
|
},
|
|
"suggest": {
|
|
"seravo/wp-custom-bulk-actions": "Custom Bulk Actions",
|
|
"wpackagist-plugin/rewrite-testing": "Rewrite Rule Testing"
|
|
}
|
|
}
|