-
Notifications
You must be signed in to change notification settings - Fork 44
Expand file tree
/
Copy pathcomposer.json
More file actions
71 lines (71 loc) · 2.64 KB
/
composer.json
File metadata and controls
71 lines (71 loc) · 2.64 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
{
"name": "automattic/syndication",
"description": "Syndication helps users manage posts across multiple sites. It's useful when managing posts on different platforms. With a single click you can push or pull a post to or from more than 100 sites.",
"license": "GPL-2.0-or-later",
"type": "wordpress-plugin",
"authors": [
{
"name": "Automattic",
"homepage": "https://automattic.com/"
}
],
"homepage": "https://github.com/Automattic/syndication/",
"support": {
"issues": "https://github.com/Automattic/syndication/issues",
"source": "https://github.com/Automattic/syndication"
},
"require": {
"php": ">=7.4",
"composer/installers": "^1.0 || ^2.0"
},
"require-dev": {
"automattic/vipwpcs": "^3",
"php-parallel-lint/php-parallel-lint": "^1.0",
"phpcompatibility/phpcompatibility-wp": "^2.1",
"phpunit/phpunit": "^9",
"yoast/wp-test-utils": "^1.2"
},
"config": {
"allow-plugins": {
"composer/installers": true,
"dealerdirect/phpcodesniffer-composer-installer": true
},
"sort-packages": true
},
"scripts": {
"coverage": [
"@php ./vendor/bin/phpunit --coverage-html ./.phpunit.cache/coverage-html"
],
"coverage-ci": "wp-env run tests-cli --env-cwd=wp-content/plugins/syndication ./vendor/bin/phpunit --testsuite integration",
"cs": [
"@php ./vendor/bin/phpcs -q"
],
"cs-fix": [
"@php ./vendor/bin/phpcbf -q"
],
"i18n": [
"@php wp i18n make-pot . ./languages/push-syndication.pot --domain=push-syndication"
],
"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"
],
"test:unit": "@php ./vendor/bin/phpunit --testsuite Unit",
"test:integration": "wp-env run tests-cli --env-cwd=wp-content/plugins/syndication ./vendor/bin/phpunit --testsuite integration",
"test:integration-ms": "wp-env run tests-cli --env-cwd=wp-content/plugins/syndication /bin/bash -c 'WP_MULTISITE=1 ./vendor/bin/phpunit --testsuite integration'"
},
"scripts-descriptions": {
"coverage": "Run tests with code coverage reporting",
"coverage-ci": "Run integration tests with code coverage reporting in wp-env",
"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",
"test:unit": "Run unit tests (no WordPress required)",
"test:integration": "Run integration tests in wp-env",
"test:integration-ms": "Run integration tests in multisite mode in wp-env"
}
}