Skip to content

Commit dcc21d4

Browse files
authored
Merge pull request #26 from Automattic/update/normalize-composer-json
2 parents b12116e + 5913fd7 commit dcc21d4

File tree

1 file changed

+23
-22
lines changed

1 file changed

+23
-22
lines changed

composer.json

Lines changed: 23 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"name": "automattic/buddypress-vip-go",
33
"description": "Makes BuddyPress' media work with WordPress VIP's hosting.",
4-
"type": "wordpress-plugin",
54
"license": "GPL-2.0-or-later",
5+
"type": "wordpress-plugin",
66
"authors": [
7-
{
7+
{
88
"name": "Human Made",
99
"homepage": "https://humanmade.com/"
1010
},
@@ -13,46 +13,47 @@
1313
"homepage": "https://automattic.com/"
1414
}
1515
],
16+
"homepage": "https://github.com/Automattic/BuddyPress-VIP-Go",
1617
"support": {
1718
"issues": "https://github.com/Automattic/BuddyPress-VIP-Go/issues",
1819
"source": "https://github.com/Automattic/BuddyPress-VIP-Go"
1920
},
2021
"require": {
21-
"composer/installers": "^2",
22-
"php": ">=8.2"
22+
"php": ">=8.2",
23+
"composer/installers": "^1.0 || ^2.0"
2324
},
2425
"require-dev": {
2526
"automattic/vipwpcs": "^3",
2627
"php-parallel-lint/php-parallel-lint": "^1.0",
27-
"phpcompatibility/phpcompatibility-wp": "^2.1",
28-
"wp-coding-standards/wpcs": "^3.1"
28+
"phpcompatibility/phpcompatibility-wp": "^2.1"
29+
},
30+
"config": {
31+
"allow-plugins": {
32+
"composer/installers": true,
33+
"dealerdirect/phpcodesniffer-composer-installer": true
34+
},
35+
"sort-packages": true
2936
},
3037
"scripts": {
31-
"coverage": [
32-
"@putenv WP_MULTISITE=1",
33-
"@php ./vendor/bin/phpunit --exclude=ms-excluded --coverage-html ./.phpunit.cache/coverage-html"
34-
],
35-
"coverage-ci": [
36-
"@putenv WP_MULTISITE=1",
37-
"@php ./vendor/bin/phpunit --exclude=ms-excluded"
38-
],
3938
"cs": [
40-
"@php ./vendor/bin/phpcs"
39+
"@php ./vendor/bin/phpcs -q"
4140
],
42-
"cbf": [
43-
"@php ./vendor/bin/phpcbf"
41+
"cs-fix": [
42+
"@php ./vendor/bin/phpcbf -q"
4443
],
44+
"i18n": "@php wp i18n make-pot . ./languages/buddypress-vip-go.pot",
4545
"lint": [
4646
"@php ./vendor/php-parallel-lint/php-parallel-lint/parallel-lint . -e php --exclude vendor --exclude .git"
4747
],
4848
"lint-ci": [
4949
"@php ./vendor/php-parallel-lint/php-parallel-lint/parallel-lint . -e php --exclude vendor --exclude .git --checkstyle"
5050
]
5151
},
52-
"config": {
53-
"allow-plugins": {
54-
"composer/installers": true,
55-
"dealerdirect/phpcodesniffer-composer-installer": true
56-
}
52+
"scripts-descriptions": {
53+
"cs": "Run PHP Code Sniffer",
54+
"cs-fix": "Run PHP Code Sniffer and fix violations",
55+
"i18n": "Generate a POT file for translation",
56+
"lint": "Run PHP linting",
57+
"lint-ci": "Run PHP linting and send results to stdout"
5758
}
5859
}

0 commit comments

Comments
 (0)