forked from Automattic/jetpack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
composer.json
104 lines (104 loc) · 3.63 KB
/
composer.json
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
102
103
104
{
"name": "automattic/jetpack-monorepo",
"description": "Monorepo for the Jetpack ecosystem",
"homepage": "https://jetpack.com/",
"type": "wordpress-plugin",
"license": "GPL-2.0-or-later",
"support": {
"issues": "https://github.com/Automattic/jetpack/issues"
},
"require-dev": {
"automattic/jetpack-codesniffer": "2.5.x-dev",
"automattic/jetpack-phpcs-filter": "1.0.x-dev",
"dealerdirect/phpcodesniffer-composer-installer": "0.7.2",
"php-parallel-lint/php-parallel-lint": "1.3.2",
"sirbrillig/phpcs-changed": "2.9.0",
"squizlabs/php_codesniffer": "3.6.1",
"wp-coding-standards/wpcs": "dev-develop#7b39722c38cbf2fe64c55be7154ee6f1807d304c as 2.3.1"
},
"scripts": {
"php:lint": [
"printf '\\e[30;43m`composer php:lint` now lints. If you want to run phpcs, use `composer phpcs:lint`.\\e[0m\\n'",
"tools/parallel-lint.sh"
],
"phpcs:changed": [
"Composer\\Config::disableProcessTimeout",
"phpcs-changed -s --git"
],
"phpcs:compatibility": [
"@phpcs:lint --standard=./.phpcs.config.xml,PHPCompatibilityWP --runtime-set jetpack-filter-perdir-file .phpcs.dir.phpcompatibility.xml"
],
"phpcs:fix": [
"Composer\\Config::disableProcessTimeout",
"phpcbf -p"
],
"phpcs:fix:required": [
"@phpcs:fix --filter=tools/class-jetpack-phpcs-exclude-filter.php"
],
"phpcs:lint": [
"Composer\\Config::disableProcessTimeout",
"phpcs -p -s"
],
"phpcs:lint:errors": [
"@phpcs:lint --runtime-set ignore_warnings_on_exit 1"
],
"phpcs:lint:required": [
"@phpcs:lint --filter=tools/class-jetpack-phpcs-exclude-filter.php"
],
"php:autofix": [
"printf '\\e[37;41m`composer php:autofix` is deprecated. Use `composer phpcs:fix` instead.\\e[0m\\n'",
"@phpcs:fix"
],
"php:changed": [
"printf '\\e[37;41m`composer php:changed` is deprecated. Use `composer phpcs:changed` instead.\\e[0m\\n'",
"@phpcs:changed"
],
"php:lint:errors": [
"printf '\\e[37;41m`composer php:lint:errors` is deprecated. Use `composer phpcs:lint:errors` instead.\\e[0m\\n'",
"@phpcs:lint:errors"
],
"php:requirelist": [
"printf '\\e[37;41m`composer php:requirelist` is deprecated. Use `composer phpcs:lint:required` and/or `composer phpcs:fix:required` instead.\\e[0m\\n'",
"@phpcs:fix:required",
"@phpcs:lint:required"
],
"test-js": [
"cd tools/cli && pnpm test"
]
},
"scripts-descriptions": {
"php:lint": "Run PHP's linter (`php -l`).",
"phpcs:changed": "Run phpcs over git changes only. One or more files must be specified.",
"phpcs:compatibility": "Run PHPCompatibility checks. One or more files or directories must be specified.",
"phpcs:fix": "Run phpcbf (phpcs's auto-fixer).",
"phpcs:fix:required": "Run phpcbf on files that are not excluded by bin/phpcs-excludelist.json.",
"phpcs:lint": "Run phpcs.",
"phpcs:lint:errors": "Run phpcs, exiting with failure only if errors were encountered.",
"phpcs:lint:required": "Run phpcs on files that are not excluded by bin/phpcs-excludelist.json.",
"php:autofix": "DEPRECATED. Use `composer phpcs:fix` instead.",
"php:changed": "DEPRECATED. Use `composer phpcs:changed` instead.",
"php:lint:errors": "DEPRECATED. Use `composer phpcs:lint:errors` instead.",
"php:requirelist": "DEPRECATED. Use `composer phpcs:lint:required` and/or `composer phpcs:fix:required` instead."
},
"repositories": [
{
"type": "path",
"url": "projects/packages/*",
"options": {
"monorepo": true
}
},
{
"type": "vcs",
"url": "https://github.com/Automattic/PHP_CodeSniffer"
}
],
"minimum-stability": "dev",
"prefer-stable": true,
"config": {
"sort-packages": true,
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
}
}