Skip to content

Commit 596bf58

Browse files
committed
Update composer.json
Normalize and expand on items like sorting packages, and script descriptions.
1 parent 69c680a commit 596bf58

File tree

1 file changed

+24
-10
lines changed

1 file changed

+24
-10
lines changed

composer.json

Lines changed: 24 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,19 @@
11
{
22
"name": "automattic/ad-code-manager",
3-
"type": "wordpress-plugin",
43
"description": "Easy ad code management",
5-
"homepage": "https://github.com/Automattic/ad-code-manager/",
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/ad-code-manager/",
13+
"support": {
14+
"issues": "https://github.com/Automattic/ad-code-manager/issues",
15+
"source": "https://github.com/Automattic/ad-code-manager"
16+
},
1317
"require": {
1418
"php": ">=7.4",
1519
"composer/installers": "^1.0 || ^2.0"
@@ -24,21 +28,23 @@
2428
"allow-plugins": {
2529
"composer/installers": true,
2630
"dealerdirect/phpcodesniffer-composer-installer": true
27-
}
31+
},
32+
"sort-packages": true
2833
},
2934
"scripts": {
30-
"cbf": [
31-
"@php ./vendor/bin/phpcbf"
32-
],
3335
"coverage": [
3436
"@php ./vendor/bin/phpunit --coverage-html ./.phpunit.cache/coverage-html"
3537
],
3638
"coverage-ci": [
3739
"@php ./vendor/bin/phpunit"
3840
],
3941
"cs": [
40-
"@php ./vendor/bin/phpcs"
42+
"@php ./vendor/bin/phpcs -q"
43+
],
44+
"cs-fix": [
45+
"@php ./vendor/bin/phpcbf -q"
4146
],
47+
"i18n": "@php wp i18n make-pot . ./languages/ad-code-manager.pot",
4248
"lint": [
4349
"@php ./vendor/php-parallel-lint/php-parallel-lint/parallel-lint . -e php --exclude vendor --exclude .git"
4450
],
@@ -56,8 +62,16 @@
5662
"@composer test"
5763
]
5864
},
59-
"support": {
60-
"issues": "https://github.com/Automattic/ad-code-manager/issues",
61-
"source": "https://github.com/Automattic/ad-code-manager"
65+
"scripts-descriptions": {
66+
"coverage": "Run tests with code coverage reporting",
67+
"coverage-ci": "Run tests with code coverage reporting and send results to stdout",
68+
"cs": "Run PHP Code Sniffer",
69+
"cs-fix": "Run PHP Code Sniffer and fix violations",
70+
"i18n": "Generate a POT file for translation",
71+
"lint": "Run PHP linting",
72+
"lint-ci": "Run PHP linting and send results to stdout",
73+
"prepare-ci": "Prepare the environment for integration tests",
74+
"test": "Run all tests for the Ad Code Manager plugin",
75+
"test-ms": "Run integration tests for the Ad Code Manager plugin in multisite mode"
6276
}
6377
}

0 commit comments

Comments
 (0)