-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #330 from Yoast/JRF/composer-tweaks
Composer: normalize the file, add script descriptions
- Loading branch information
Showing
1 changed file
with
89 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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." | ||
} | ||
} |