Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Composer: normalize the file, add script descriptions #330

Merged
merged 2 commits into from
Oct 6, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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."
}
}