Skip to content

Commit c4dfdf0

Browse files
authored
Merge pull request #135 from Automattic/update/normalize-composer-json
2 parents e7d9224 + 3c67f83 commit c4dfdf0

File tree

1 file changed

+30
-19
lines changed

1 file changed

+30
-19
lines changed

composer.json

Lines changed: 30 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,50 @@
11
{
22
"name": "automattic/zoninator",
3-
"type": "wordpress-plugin",
43
"description": "Zone Editor",
5-
"homepage": "https://github.com/Automattic/zoninator/",
64
"license": "GPL-2.0-or-later",
5+
"type": "wordpress-plugin",
76
"authors": [
87
{
98
"name": "Automattic",
109
"homepage": "https://automattic.com/"
1110
}
1211
],
12+
"homepage": "https://github.com/Automattic/zoninator/",
13+
"support": {
14+
"issues": "https://github.com/Automattic/zoninator/issues",
15+
"source": "https://github.com/Automattic/zoninator"
16+
},
1317
"require": {
1418
"php": ">=7.4",
15-
"composer/installers": "~1.0"
19+
"composer/installers": "^1.0 || ^2.0"
1620
},
1721
"require-dev": {
1822
"automattic/vipwpcs": "^3",
1923
"php-parallel-lint/php-parallel-lint": "^1.0",
2024
"phpcompatibility/phpcompatibility-wp": "^2.1",
2125
"phpunit/phpunit": "^9",
22-
"wp-coding-standards/wpcs": "^3",
23-
"yoast/phpunit-polyfills": "^1",
24-
"rector/rector": "^1.2"
26+
"rector/rector": "^1.2",
27+
"yoast/phpunit-polyfills": "^1"
28+
},
29+
"config": {
30+
"allow-plugins": {
31+
"composer/installers": true,
32+
"dealerdirect/phpcodesniffer-composer-installer": true
33+
},
34+
"sort-packages": true
2535
},
2636
"scripts": {
27-
"cbf": [
28-
"@php ./vendor/bin/phpcbf"
29-
],
3037
"coverage": [
3138
"@php ./vendor/bin/phpunit --coverage-html ./build/coverage-html"
3239
],
3340
"coverage-ci": [
3441
"@php ./vendor/bin/phpunit"
3542
],
3643
"cs": [
37-
"@php ./vendor/bin/phpcs"
44+
"@php ./vendor/bin/phpcs -q"
45+
],
46+
"cs-fix": [
47+
"@php ./vendor/bin/phpcbf -q"
3848
],
3949
"i18n": [
4050
"@php wp i18n make-pot . ./languages/zoninator.pot"
@@ -48,14 +58,15 @@
4858
"test-integration": "wp-env run tests-cli --env-cwd=wp-content/plugins/zoninator ./vendor/bin/phpunit --testsuite WP_Tests",
4959
"test-integration-ms": "wp-env run tests-cli --env-cwd=wp-content/plugins/zoninator /bin/bash -c 'WP_MULTISITE=1 ./vendor/bin/phpunit --testsuite WP_Tests'"
5060
},
51-
"support": {
52-
"issues": "https://github.com/Automattic/zoninator/issues",
53-
"source": "https://github.com/Automattic/zoninator"
54-
},
55-
"config": {
56-
"allow-plugins": {
57-
"composer/installers": true,
58-
"dealerdirect/phpcodesniffer-composer-installer": true
59-
}
61+
"scripts-descriptions": {
62+
"coverage": "Run tests with code coverage reporting",
63+
"coverage-ci": "Run tests with code coverage reporting and send results to stdout",
64+
"cs": "Run PHP Code Sniffer",
65+
"cs-fix": "Run PHP Code Sniffer and fix violations",
66+
"i18n": "Generate a POT file for translation",
67+
"lint": "Run PHP linting",
68+
"lint-ci": "Run PHP linting and send results to stdout",
69+
"test-integration": "Run all integration tests for the Zoninator plugin",
70+
"test-integration-ms": "Run integration tests for the Zoninator plugin in multisite mode"
6071
}
6172
}

0 commit comments

Comments
 (0)