Skip to content

Commit

Permalink
Merge pull request #330 from Yoast/JRF/composer-tweaks
Browse files Browse the repository at this point in the history
Composer: normalize the file, add script descriptions
  • Loading branch information
jrfnl authored Oct 6, 2023
2 parents 455a3dc + 31db713 commit b3fffa5
Showing 1 changed file with 89 additions and 78 deletions.
167 changes: 89 additions & 78 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,80 +1,91 @@
{
"name": "yoast/duplicate-post",
"description": "The go-to tool for cloning posts and pages, including the powerful Rewrite & Republish feature.",
"keywords": [
"wordpress",
"post",
"copy",
"clone"
],
"homepage": "https://wordpress.org/plugins/duplicate-post/",
"license": "GPL-2.0-or-later",
"authors": [
{
"name": "Enrico Battocchi & Team Yoast",
"email": "[email protected]",
"homepage": "https://yoast.com"
}
],
"type": "wordpress-plugin",
"support": {
"issues": "https://github.com/Yoast/duplicate-post/issues",
"forum": "https://wordpress.org/support/plugin/duplicate-post",
"source": "https://github.com/Yoast/duplicate-post"
},
"require": {
"php": "^7.2.5 || ^8.0",
"composer/installers": "^1.12.0 || ^2.0"
},
"require-dev": {
"yoast/yoastcs": "^2.3.1",
"yoast/wp-test-utils": "^1.2.0",
"roave/security-advisories": "dev-master"
},
"autoload": {
"classmap": [
"src/"
]
},
"autoload-dev": {
"classmap": [
"tests/"
]
},
"scripts": {
"lint": [
"@php ./vendor/php-parallel-lint/php-parallel-lint/parallel-lint . -e php --show-deprecated --exclude vendor --exclude node_modules --exclude .git"
],
"check-cs": [
"@php ./vendor/squizlabs/php_codesniffer/bin/phpcs"
],
"fix-cs": [
"@php ./vendor/squizlabs/php_codesniffer/bin/phpcbf"
],
"test": [
"@php ./vendor/phpunit/phpunit/phpunit --no-coverage"
],
"coverage": [
"@php ./vendor/phpunit/phpunit/phpunit"
],
"test-wp": [
"@php ./vendor/phpunit/phpunit/phpunit -c phpunit-wp.xml.dist --no-coverage"
],
"coverage-wp": [
"@php ./vendor/phpunit/phpunit/phpunit -c phpunit-wp.xml.dist"
],
"integration-test": [
"@test-wp"
],
"integration-coverage": [
"@coverage-wp"
]
},
"config": {
"classmap-authoritative": true,
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true,
"composer/installers": true
}
}
"name": "yoast/duplicate-post",
"description": "The go-to tool for cloning posts and pages, including the powerful Rewrite & Republish feature.",
"license": "GPL-2.0-or-later",
"type": "wordpress-plugin",
"keywords": [
"wordpress",
"post",
"copy",
"clone"
],
"authors": [
{
"name": "Enrico Battocchi & Team Yoast",
"email": "[email protected]",
"homepage": "https://yoast.com"
}
],
"homepage": "https://wordpress.org/plugins/duplicate-post/",
"support": {
"issues": "https://github.com/Yoast/duplicate-post/issues",
"forum": "https://wordpress.org/support/plugin/duplicate-post",
"source": "https://github.com/Yoast/duplicate-post"
},
"require": {
"php": "^7.2.5 || ^8.0",
"composer/installers": "^1.12.0 || ^2.0"
},
"require-dev": {
"roave/security-advisories": "dev-master",
"yoast/wp-test-utils": "^1.2.0",
"yoast/yoastcs": "^2.3.1"
},
"autoload": {
"classmap": [
"src/"
]
},
"autoload-dev": {
"classmap": [
"tests/"
]
},
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true,
"composer/installers": true
},
"classmap-authoritative": true
},
"scripts": {
"lint": [
"@php ./vendor/php-parallel-lint/php-parallel-lint/parallel-lint . -e php --show-deprecated --exclude vendor --exclude node_modules --exclude .git"
],
"check-cs": [
"@php ./vendor/squizlabs/php_codesniffer/bin/phpcs"
],
"fix-cs": [
"@php ./vendor/squizlabs/php_codesniffer/bin/phpcbf"
],
"test": [
"@php ./vendor/phpunit/phpunit/phpunit --no-coverage"
],
"coverage": [
"@php ./vendor/phpunit/phpunit/phpunit"
],
"test-wp": [
"@php ./vendor/phpunit/phpunit/phpunit -c phpunit-wp.xml.dist --no-coverage"
],
"coverage-wp": [
"@php ./vendor/phpunit/phpunit/phpunit -c phpunit-wp.xml.dist"
],
"integration-test": [
"@test-wp"
],
"integration-coverage": [
"@coverage-wp"
]
},
"scripts-descriptions": {
"lint": "Check the PHP files for parse errors.",
"check-cs": "Check the PHP files for code style violations and best practices.",
"fix-cs": "Auto-fix code style violations in the PHP files.",
"test": "Run the unit tests without code coverage.",
"coverage": "Run the unit tests with code coverage.",
"test-wp": "Run the WP unit tests without code coverage.",
"coverage-wp": "Run the WP unit tests with code coverage.",
"integration-test": "Deprecated. Alias for the \"test-wp\" script.",
"integration-coverage": "Deprecated. Alias for the \"coverage-wp\" script."
}
}

0 comments on commit b3fffa5

Please sign in to comment.