forked from wp-media/wp-rocket
-
Notifications
You must be signed in to change notification settings - Fork 0
/
composer.json
193 lines (193 loc) · 9.69 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
193
{
"name": "wp-media/wp-rocket",
"description": "Performance optimization plugin for WordPress",
"keywords": [
"wordpress",
"cache",
"minification",
"lazyload"
],
"homepage": "https://wp-rocket.me",
"license": "GPL-2.0-or-later",
"authors": [
{
"name": "WP Media",
"email": "[email protected]",
"homepage": "https://wp-media.me"
}
],
"type": "wordpress-plugin",
"config": {
"sort-packages": true,
"preferred-install": {
"wp-media/phpunit": "source"
},
"process-timeout": 0,
"allow-plugins": {
"composer/installers": true,
"mnsami/composer-custom-directory-installer": true,
"dealerdirect/phpcodesniffer-composer-installer": true
}
},
"support": {
"issues": "https://github.com/wp-media/wp-rocket/issues",
"source": "https://github.com/wp-media/wp-rocket"
},
"repositories": [
{
"type": "composer",
"url": "https://wpackagist.org"
}
],
"require": {
"php": ">=7.0",
"composer/installers": "^1.0 || ^2.0",
"monolog/monolog": "^1.0 || ^2.0"
},
"require-dev": {
"php": "^7 || ^8",
"brain/monkey": "^2.0",
"coenjacobs/mozart": "^0.7",
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.0",
"league/container": "^3.3",
"mikey179/vfsstream": "1.6.9",
"mnsami/composer-custom-directory-installer": "^2.0",
"mobiledetect/mobiledetectlib": "^2.8",
"phpcompatibility/phpcompatibility-wp": "^2.0",
"phpstan/phpstan": "^0.12",
"phpunit/phpunit": "^7.5 || ^8 || ^9",
"psr/container": "1.0.0",
"roave/security-advisories": "dev-master",
"szepeviktor/phpstan-wordpress": "^0.7.0",
"woocommerce/action-scheduler": "^3.4",
"wp-coding-standards/wpcs": "^2",
"wp-media/background-processing": "^1.3",
"wp-media/cloudflare": "^1.0",
"wp-media/module-varnish": "^2.0",
"wp-media/phpunit": "^3.0",
"wp-media/rocket-lazyload-common": "^3.0",
"wp-media/wp-imagify-partner": "^1.0",
"wpackagist-plugin/amp": "^1.1.4",
"wpackagist-plugin/hummingbird-performance": "2.0.1",
"wpackagist-plugin/pdf-embedder": "^4.6",
"wpackagist-plugin/simple-custom-css": "^4.0.3",
"wpackagist-plugin/spinupwp": "^1.1",
"wpackagist-plugin/woocommerce": "^5.3",
"wpackagist-plugin/wp-smushit": "^3.0"
},
"autoload": {
"classmap": [
"inc/classes",
"inc/vendors/classes",
"inc/deprecated"
],
"exclude-from-classmap": [
"inc/vendors/classes/class-rocket-mobile-detect.php",
"inc/classes/class-wp-rocket-requirements-check.php"
],
"psr-4": {
"WP_Rocket\\": "inc/",
"WPMedia\\Cloudflare\\": "inc/Addon/Cloudflare/"
}
},
"autoload-dev": {
"psr-4": {
"WP_Rocket\\Tests\\": "tests/"
}
},
"extra": {
"installer-paths": {
"./inc/Dependencies/ActionScheduler/": ["woocommerce/action-scheduler"],
"vendor/{$vendor}/{$name}/": ["type:wordpress-plugin"],
"./inc/Addon/Cloudflare/": ["wp-media/cloudflare"],
"./inc/Addon/Varnish/": ["wp-media/module-varnish"]
},
"mozart": {
"dep_namespace": "WP_Rocket\\Dependencies\\",
"dep_directory": "/inc/Dependencies/",
"classmap_directory": "/inc/classes/dependencies/",
"classmap_prefix": "WP_Rocket_",
"packages": [
"mobiledetect/mobiledetectlib",
"wp-media/background-processing",
"wp-media/rocket-lazyload-common",
"wp-media/wp-imagify-partner",
"league/container"
]
}
},
"scripts": {
"test-unit": "\"vendor/bin/phpunit\" --testsuite unit --colors=always --configuration tests/Unit/phpunit.xml.dist",
"test-integration": "\"vendor/bin/phpunit\" --testsuite integration --colors=always --configuration tests/Integration/phpunit.xml.dist --exclude-group AdminOnly,BeaverBuilder,Elementor,Hummingbird,WithSmush,WithWoo,WithAmp,WithAmpAndCloudflare,WithSCCSS,Cloudways,Dreampress,DoCloudflare,Multisite,WPEngine,SpinUpWP,WordPressCom,O2Switch,PDFEmbedder,PDFEmbedderPremium,PDFEmbedderSecure,Godaddy,LiteSpeed,RevolutionSlider,WordFence,ConvertPlug,Kinsta",
"test-integration-adminonly": "\"vendor/bin/phpunit\" --testsuite integration --colors=always --configuration tests/Integration/phpunit.xml.dist --group AdminOnly",
"test-integration-bb": "\"vendor/bin/phpunit\" --testsuite integration --colors=always --configuration tests/Integration/phpunit.xml.dist --group BeaverBuilder",
"test-integration-cloudflare": "\"vendor/bin/phpunit\" --testsuite integration --colors=always --configuration tests/Integration/phpunit.xml.dist --group DoCloudflare",
"test-integration-cloudways": "\"vendor/bin/phpunit\" --testsuite integration --colors=always --configuration tests/Integration/phpunit.xml.dist --group Cloudways",
"test-integration-elementor": "\"vendor/bin/phpunit\" --testsuite integration --colors=always --configuration tests/Integration/phpunit.xml.dist --group Elementor",
"test-integration-hummingbird": "\"vendor/bin/phpunit\" --testsuite integration --colors=always --configuration tests/Integration/phpunit.xml.dist --group Hummingbird",
"test-integration-multisite": "\"vendor/bin/phpunit\" --testsuite integration --colors=always --configuration tests/Integration/phpunit.xml.dist --group Multisite",
"test-integration-withsmush": "\"vendor/bin/phpunit\" --testsuite integration --colors=always --configuration tests/Integration/phpunit.xml.dist --group WithSmush",
"test-integration-withamp": "\"vendor/bin/phpunit\" --testsuite integration --colors=always --configuration tests/Integration/phpunit.xml.dist --group WithAmp",
"test-integration-withampcloudflare": "\"vendor/bin/phpunit\" --testsuite integration --colors=always --configuration tests/Integration/phpunit.xml.dist --group WithAmpAndCloudflare",
"test-integration-withsccss": "\"vendor/bin/phpunit\" --testsuite integration --colors=always --configuration tests/Integration/phpunit.xml.dist --group WithSCCSS",
"test-integration-withwoo": "\"vendor/bin/phpunit\" --testsuite integration --colors=always --configuration tests/Integration/phpunit.xml.dist --group WithWoo",
"test-integration-wpengine": "\"vendor/bin/phpunit\" --testsuite integration --colors=always --configuration tests/Integration/phpunit.xml.dist --group WPEngine",
"test-integration-spinupwp": "\"vendor/bin/phpunit\" --testsuite integration --colors=always --configuration tests/Integration/phpunit.xml.dist --group SpinUpWP",
"test-integration-wpcom": "\"vendor/bin/phpunit\" --testsuite integration --colors=always --configuration tests/Integration/phpunit.xml.dist --group WordPressCom",
"test-integration-pdfembedder": "\"vendor/bin/phpunit\" --testsuite integration --colors=always --configuration tests/Integration/phpunit.xml.dist --group PDFEmbedder",
"test-integration-pdfembedderpremium": "\"vendor/bin/phpunit\" --testsuite integration --colors=always --configuration tests/Integration/phpunit.xml.dist --group PDFEmbedderPremium",
"test-integration-pdfembeddersecure": "\"vendor/bin/phpunit\" --testsuite integration --colors=always --configuration tests/Integration/phpunit.xml.dist --group PDFEmbedderSecure",
"test-integration-o2switch": "\"vendor/bin/phpunit\" --testsuite integration --colors=always --configuration tests/Integration/phpunit.xml.dist --group O2Switch",
"test-integration-dreampress": "\"vendor/bin/phpunit\" --testsuite integration --colors=always --configuration tests/Integration/phpunit.xml.dist --group Dreampress",
"test-integration-godaddy": "\"vendor/bin/phpunit\" --testsuite integration --colors=always --configuration tests/Integration/phpunit.xml.dist --group Godaddy",
"test-integration-revolutionslider": "\"vendor/bin/phpunit\" --testsuite integration --colors=always --configuration tests/Integration/phpunit.xml.dist --group RevolutionSlider",
"test-integration-litespeed": "\"vendor/bin/phpunit\" --testsuite integration --colors=always --configuration tests/Integration/phpunit.xml.dist --group LiteSpeed",
"test-integration-wordfence": "\"vendor/bin/phpunit\" --testsuite integration --colors=always --configuration tests/Integration/phpunit.xml.dist --group WordFence",
"test-integration-kinsta": "\"vendor/bin/phpunit\" --testsuite integration --colors=always --configuration tests/Integration/phpunit.xml.dist --group Kinsta",
"test-integration-convertplug": "\"vendor/bin/phpunit\" --testsuite integration --colors=always --configuration tests/Integration/phpunit.xml.dist --group ConvertPlug",
"run-tests": [
"@test-unit",
"@test-integration",
"@test-integration-adminonly",
"@test-integration-cloudflare",
"@test-integration-bb",
"@test-integration-elementor",
"@test-integration-hummingbird",
"@test-integration-withamp",
"@test-integration-withampcloudflare",
"@test-integration-withsccss",
"@test-integration-withsmush",
"@test-integration-withwoo",
"@test-integration-pdfembedder",
"@test-integration-pdfembedderpremium",
"@test-integration-pdfembeddersecure",
"@test-integration-multisite",
"@test-integration-cloudways",
"@test-integration-wpengine",
"@test-integration-spinupwp",
"@test-integration-wpcom",
"@test-integration-o2switch",
"@test-integration-dreampress",
"@test-integration-godaddy",
"@test-integration-revolutionslider",
"@test-integration-litespeed",
"@test-integration-wordfence",
"@test-integration-kinsta",
"@test-integration-convertplug"
],
"run-stan": "vendor/bin/phpstan analyze --memory-limit=2G --no-progress",
"install-codestandards": "Dealerdirect\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\Plugin::run",
"phpcs": "phpcs --basepath=.",
"phpcs-changed": "./bin/phpcs-changed.sh",
"phpcs:fix": "phpcbf",
"post-install-cmd": [
"\"vendor/bin/mozart\" compose",
"composer dump-autoload"
],
"post-update-cmd": [
"\"vendor/bin/mozart\" compose",
"composer dump-autoload"
],
"code-coverage": "\"vendor/bin/phpunit\" --testsuite unit --colors=always --configuration tests/Unit/phpunit.xml.dist --coverage-clover=tests/report/coverage.clover"
}
}