-
Notifications
You must be signed in to change notification settings - Fork 895
/
composer.json
192 lines (192 loc) · 7.04 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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
{
"name": "yoast/wordpress-seo",
"description": "Improve your WordPress SEO: Write better content and have a fully optimized WordPress site using the Yoast SEO plugin.",
"license": "GPL-2.0-or-later",
"type": "wordpress-plugin",
"keywords": [
"wordpress",
"seo"
],
"authors": [
{
"name": "Team Yoast",
"email": "[email protected]",
"homepage": "https://yoa.st/1--"
}
],
"homepage": "https://yoa.st/1ui",
"support": {
"issues": "https://github.com/Yoast/wordpress-seo/issues",
"forum": "https://wordpress.org/support/plugin/wordpress-seo",
"wiki": "https://github.com/Yoast/wordpress-seo/wiki",
"source": "https://github.com/Yoast/wordpress-seo",
"security": "https://yoast.com/security-program/"
},
"require": {
"php": "^7.2.5 || ^8.0",
"ext-filter": "*",
"composer/installers": "^1.12 || ^2.0",
"yoast/whip": "^2.0"
},
"require-dev": {
"guzzlehttp/guzzle": "7.8.1",
"humbug/php-scoper": "^0.13.4",
"league/oauth2-client": "2.7.0",
"psr/container": "1.0.0",
"psr/log": "^1.0",
"symfony/config": "^3.4",
"symfony/dependency-injection": "^3.4",
"yoast/wp-test-utils": "^1.2",
"yoast/yoastcs": "^3.1.0"
},
"suggest": {
"ext-bcmath": "For more accurate calculations",
"ext-dom": "Improves image sitemap",
"ext-libxml": "Improves image sitemap",
"ext-mbstring": "For cyrillic support"
},
"minimum-stability": "dev",
"prefer-stable": true,
"autoload": {
"classmap": [
"admin/",
"inc/",
"vendor_prefixed/",
"src/",
"lib/"
]
},
"autoload-dev": {
"classmap": [
"config/"
],
"psr-4": {
"Yoast\\WP\\SEO\\Tests\\": "tests/"
}
},
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true,
"composer/package-versions-deprecated": true,
"composer/installers": true
},
"platform": {
"php": "7.2.5"
}
},
"scripts": {
"lint": [
"@php ./vendor/php-parallel-lint/php-parallel-lint/parallel-lint . -e php --show-deprecated --exclude vendor --exclude node_modules --exclude .git"
],
"lint-files": [
"@php ./vendor/php-parallel-lint/php-parallel-lint/parallel-lint -e php --show-deprecated"
],
"lint-branch": [
"Yoast\\WP\\SEO\\Composer\\Actions::lint_branch"
],
"lint-staged": [
"Yoast\\WP\\SEO\\Composer\\Actions::lint_staged"
],
"cs": [
"Yoast\\WP\\SEO\\Composer\\Actions::check_coding_standards"
],
"check-cs-thresholds": [
"@putenv YOASTCS_THRESHOLD_ERRORS=2479",
"@putenv YOASTCS_THRESHOLD_WARNINGS=252",
"Yoast\\WP\\SEO\\Composer\\Actions::check_cs_thresholds"
],
"check-cs": [
"@check-cs-warnings -n"
],
"check-cs-errors": [
"echo You can now just use check-cs, running that command now.",
"composer check-cs"
],
"check-cs-warnings": [
"@php ./vendor/squizlabs/php_codesniffer/bin/phpcs"
],
"check-staged-cs": [
"@check-cs-warnings --filter=GitStaged"
],
"check-branch-cs": [
"Yoast\\WP\\SEO\\Composer\\Actions::check_branch_cs"
],
"fix-cs": [
"@php ./vendor/squizlabs/php_codesniffer/bin/phpcbf"
],
"test": [
"@php ./vendor/phpunit/phpunit/phpunit --no-coverage"
],
"coverage": [
"@php ./vendor/phpunit/phpunit/phpunit"
],
"test-wp": [
"@php ./vendor/phpunit/phpunit/phpunit -c phpunit-wp.xml.dist --no-coverage"
],
"coverage-wp": [
"@php ./vendor/phpunit/phpunit/phpunit -c phpunit-wp.xml.dist"
],
"integration-test": [
"@test-wp"
],
"integration-coverage": [
"@coverage-wp"
],
"prefix-dependencies": [
"composer prefix-oauth2-client",
"composer prefix-symfony"
],
"prefix-oauth2-client": [
"@php ./vendor/humbug/php-scoper/bin/php-scoper add-prefix --prefix=YoastSEO_Vendor --output-dir=./vendor_prefixed/symfony/deprecation-contracts --config=config/php-scoper/deprecation-contracts.inc.php --force --quiet",
"@php ./vendor/humbug/php-scoper/bin/php-scoper add-prefix --prefix=YoastSEO_Vendor --output-dir=./vendor_prefixed/league/oauth2-client --config=config/php-scoper/oauth2-client.inc.php --force --quiet",
"@php ./vendor/humbug/php-scoper/bin/php-scoper add-prefix --prefix=YoastSEO_Vendor --output-dir=./vendor_prefixed/guzzlehttp --config=config/php-scoper/guzzlehttp.inc.php --force --quiet",
"@php ./vendor/humbug/php-scoper/bin/php-scoper add-prefix --prefix=YoastSEO_Vendor --output-dir=./vendor_prefixed/psr --config=config/php-scoper/psr.inc.php --force --quiet"
],
"prefix-symfony": [
"@php ./vendor/humbug/php-scoper/bin/php-scoper add-prefix --prefix=YoastSEO_Vendor --output-dir=./vendor_prefixed/symfony/dependency-injection --config=config/php-scoper/dependency-injection.inc.php --force --quiet"
],
"compile-di": [
"rm -f ./src/generated/container.php",
"rm -f ./src/generated/container.php.meta",
"composer du --no-scripts",
"Yoast\\WP\\SEO\\Composer\\Actions::compile_dependency_injection_container"
],
"generate-migration": [
"Yoast\\WP\\SEO\\Composer\\Actions::generate_migration"
],
"generate-unit-test": [
"Yoast\\WP\\SEO\\Composer\\Actions::generate_unit_test"
],
"post-autoload-dump": [
"Yoast\\WP\\SEO\\Composer\\Actions::prefix_dependencies",
"composer compile-di"
]
},
"scripts-descriptions": {
"lint": "Check the PHP files for parse errors.",
"lint-files": "Internal use.",
"lint-branch": "Check the PHP files changed in the current branch for parse errors.",
"lint-staged": "Check the staged PHP files for parse errors.",
"cs": "See a menu with the code style checking script options.",
"check-cs-thresholds": "Check the PHP files for code style violations and best practices and verify the number of issues does not exceed predefined thresholds.",
"check-cs": "Check the PHP files for code style violations and best practices, ignoring warnings.",
"check-cs-errors": "Alias for check-cs command",
"check-cs-warnings": "Check the PHP files for code style violations and best practices, including warnings.",
"check-staged-cs": "Check the staged PHP files for code style violations and best practices.",
"check-branch-cs": "Check the PHP files changed in the current branch for code style violations and best practices.",
"fix-cs": "Auto-fix code style violations in the PHP files.",
"test": "Run the unit tests without code coverage.",
"coverage": "Run the unit tests with code coverage.",
"test-wp": "Run the WP unit tests without code coverage.",
"coverage-wp": "Run the WP unit tests with code coverage.",
"integration-test": "Deprecated. Alias for the \"test-wp\" script.",
"integration-coverage": "Deprecated. Alias for the \"coverage-wp\" script.",
"prefix-dependencies": "Create the vendor_prefixed directory.",
"prefix-oauth2-client": "Prefix the OAuth2 Client dependencies and place them in the vendor_prefixed directory.",
"prefix-symfony": "Prefix the Symfony dependencies and place them in the vendor_prefixed directory.",
"prefix-wordproof": "Prefix the WordProof dependencies and place them in the vendor_prefixed directory.",
"compile-di": "Compile the dependency injection layer.",
"generate-migration": "Generate a migration.",
"generate-unit-test": "Generates a unit test template for the fully qualified class provided as a CLI arg."
}
}