-
Notifications
You must be signed in to change notification settings - Fork 212
Expand file tree
/
Copy pathcomposer.json
More file actions
101 lines (101 loc) · 3.22 KB
/
composer.json
File metadata and controls
101 lines (101 loc) · 3.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
{
"name": "automattic/co-authors-plus",
"description": "Multiple bylines and Guest Authors for WordPress",
"license": "GPL-2.0-or-later",
"type": "wordpress-plugin",
"authors": [
{
"name": "Daniel Bachhuber",
"email": "d@danielbachhuber.com",
"homepage": "https://danielbachhuber.com",
"role": "Developer"
},
{
"name": "Automattic",
"homepage": "https://automattic.com/"
}
],
"homepage": "https://wordpress.org/plugins/co-authors-plus/",
"support": {
"issues": "https://github.com/Automattic/Co-Authors-Plus/issues",
"forum": "https://wordpress.org/support/plugin/co-authors-plus",
"source": "https://github.com/Automattic/Co-Authors-Plus"
},
"require": {
"php": ">=7.4",
"composer/installers": "^1.0 || ^2.0"
},
"require-dev": {
"automattic/behat-wp-env-context": "^0.1.0",
"automattic/vipwpcs": "^3",
"behat/behat": "^3.7",
"dms/phpunit-arraysubset-asserts": "^0.5.0",
"php-parallel-lint/php-parallel-lint": "^1.0",
"phpcompatibility/phpcompatibility-wp": "^2.1",
"phpunit/phpunit": "^9",
"wp-cli/extension-command": "^2.0",
"wp-cli/i18n-command": "^2.6",
"yoast/wp-test-utils": "^1.2"
},
"autoload": {
"classmap": [
"php"
]
},
"autoload-dev": {
"psr-4": {
"Automattic\\CoAuthorsPlus\\Tests\\": "tests/"
}
},
"config": {
"allow-plugins": {
"composer/installers": true,
"dealerdirect/phpcodesniffer-composer-installer": true
},
"sort-packages": true
},
"scripts": {
"behat": "behat --colors",
"behat-rerun": "behat --colors --rerun",
"coverage": [
"@putenv WP_MULTISITE=1",
"@php ./vendor/bin/phpunit --exclude=ms-excluded --coverage-html ./.phpunit.cache/coverage-html"
],
"coverage-ci": [
"@putenv WP_MULTISITE=1",
"@php ./vendor/bin/phpunit --exclude=ms-excluded"
],
"cs": [
"@php ./vendor/bin/phpcs -q"
],
"cs-fix": [
"@php ./vendor/bin/phpcbf -q"
],
"i18n": [
"@php wp i18n make-pot . languages/co-authors-plus.pot --slug=co-authors-plus"
],
"lint": [
"@php ./vendor/php-parallel-lint/php-parallel-lint/parallel-lint . -e php --exclude vendor --exclude .git"
],
"lint-ci": [
"@php ./vendor/php-parallel-lint/php-parallel-lint/parallel-lint . -e php --exclude vendor --exclude .git --checkstyle"
],
"prepare-behat-tests": "wp-env start",
"test:integration": "wp-env run tests-cli --env-cwd=wp-content/plugins/co-authors-plus ./vendor/bin/phpunit --exclude=ms-required --no-coverage",
"test:integration-ms": "wp-env run tests-cli --env-cwd=wp-content/plugins/co-authors-plus /bin/bash -c 'WP_MULTISITE=1 ./vendor/bin/phpunit --exclude=ms-excluded --no-coverage'"
},
"scripts-descriptions": {
"behat": "Run Behat tests",
"behat-rerun": "Rerun failed Behat tests",
"coverage": "Run tests with code coverage reporting",
"coverage-ci": "Run tests with code coverage reporting and send results to stdout",
"cs": "Run PHP Code Sniffer",
"cs-fix": "Run PHP Code Sniffer and fix violations",
"i18n": "Generate a POT file for translation",
"lint": "Run PHP linting",
"lint-ci": "Run PHP linting and send results to stdout",
"prepare-behat-tests": "Start wp-env environment for Behat tests",
"test:integration": "Run integration tests",
"test:integration-ms": "Run integration tests in multisite mode"
}
}