-
Notifications
You must be signed in to change notification settings - Fork 800
/
composer.json
113 lines (113 loc) · 3.82 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
105
106
107
108
109
110
111
112
113
{
"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": "@dev",
"automattic/jetpack-phan-plugins": "@dev",
"automattic/jetpack-phpcs-filter": "@dev",
"dealerdirect/phpcodesniffer-composer-installer": "1.0.0",
"phan/phan": "^5.4",
"php-parallel-lint/php-parallel-lint": "^1.4.0",
"php-stubs/woocommerce-stubs": ">=8.7",
"php-stubs/wordpress-stubs": ">=6.6",
"php-stubs/wordpress-tests-stubs": ">=6.6",
"php-stubs/wp-cli-stubs": "^2.10",
"sirbrillig/phpcs-changed": "^2.11.5",
"squizlabs/php_codesniffer": "^3.6.2"
},
"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": {
"use-github-api": false,
"sort-packages": true,
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
},
"require": {
"ext-json": "*"
}
}