-
Notifications
You must be signed in to change notification settings - Fork 158
Expand file tree
/
Copy pathcomposer.json
More file actions
132 lines (132 loc) · 6.82 KB
/
Copy pathcomposer.json
File metadata and controls
132 lines (132 loc) · 6.82 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
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
{
"name": "wordpress/performance",
"description": "Performance plugin from the WordPress Performance Team, which is a collection of standalone performance features.",
"license": "GPL-2.0-or-later",
"type": "wordpress-plugin",
"keywords": [
"performance",
"wordpress"
],
"homepage": "https://wordpress.org/plugins/performance-lab/",
"support": {
"issues": "https://github.com/WordPress/performance/issues"
},
"require": {
"php": "^7.2 || ^8.0",
"ext-json": "*"
},
"suggest": {
"ext-imagick": "Required to use Modern Image Format's Dominant_Color_Image_Editor_Imagick class",
"ext-gd": "Required to use Modern Image Format's Dominant_Color_Image_Editor_GD class"
},
"require-dev": {
"phpcompatibility/php-compatibility": "^9.3",
"slevomat/coding-standard": "^8.0",
"squizlabs/php_codesniffer": "^3.9",
"wp-coding-standards/wpcs": "^3.1",
"wp-phpunit/wp-phpunit": "^6.5",
"yoast/phpunit-polyfills": "^2.0"
},
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
},
"platform": {
"php": "7.2"
}
},
"scripts": {
"format": "phpcbf --report-summary --report-source",
"format:all": [
"@format",
"@format:auto-sizes",
"@format:dominant-color-images",
"@format:embed-optimizer",
"@format:image-prioritizer",
"@format:optimization-detective",
"@format:performance-lab",
"@format:speculation-rules",
"@format:web-worker-offloading",
"@format:webp-uploads"
],
"format:auto-sizes": "@format -- ./plugins/auto-sizes --standard=./plugins/auto-sizes/phpcs.xml.dist",
"format:dominant-color-images": "@format -- ./plugins/dominant-color-images --standard=./plugins/dominant-color-images/phpcs.xml.dist",
"format:embed-optimizer": "@format -- ./plugins/embed-optimizer --standard=./plugins/embed-optimizer/phpcs.xml.dist",
"format:image-prioritizer": "@format -- ./plugins/image-prioritizer --standard=./plugins/image-prioritizer/phpcs.xml.dist",
"format:optimization-detective": "@format -- ./plugins/optimization-detective --standard=./plugins/optimization-detective/phpcs.xml.dist",
"format:performance-lab": "@format -- ./plugins/performance-lab --standard=./plugins/performance-lab/phpcs.xml.dist",
"format:speculation-rules": "@format -- ./plugins/speculation-rules --standard=./plugins/speculation-rules/phpcs.xml.dist",
"format:web-worker-offloading": "@format -- ./plugins/web-worker-offloading --standard=./plugins/web-worker-offloading/phpcs.xml.dist",
"format:webp-uploads": "@format -- ./plugins/webp-uploads --standard=./plugins/webp-uploads/phpcs.xml.dist",
"lint": "phpcs",
"lint:all": [
"@lint",
"@lint:auto-sizes",
"@lint:dominant-color-images",
"@lint:embed-optimizer",
"@lint:image-prioritizer",
"@lint:optimization-detective",
"@lint:performance-lab",
"@lint:speculation-rules",
"@lint:web-worker-offloading",
"@lint:webp-uploads"
],
"lint:auto-sizes": "@lint -- ./plugins/auto-sizes --standard=./plugins/auto-sizes/phpcs.xml.dist",
"lint:dominant-color-images": "@lint -- ./plugins/dominant-color-images --standard=./plugins/dominant-color-images/phpcs.xml.dist",
"lint:embed-optimizer": "@lint -- ./plugins/embed-optimizer --standard=./plugins/embed-optimizer/phpcs.xml.dist",
"lint:image-prioritizer": "@lint -- ./plugins/image-prioritizer --standard=./plugins/image-prioritizer/phpcs.xml.dist",
"lint:optimization-detective": "@lint -- ./plugins/optimization-detective --standard=./plugins/optimization-detective/phpcs.xml.dist",
"lint:performance-lab": "@lint -- ./plugins/performance-lab --standard=./plugins/performance-lab/phpcs.xml.dist",
"lint:speculation-rules": "@lint -- ./plugins/speculation-rules --standard=./plugins/speculation-rules/phpcs.xml.dist",
"lint:web-worker-offloading": "@lint -- ./plugins/web-worker-offloading --standard=./plugins/web-worker-offloading/phpcs.xml.dist",
"lint:webp-uploads": "@lint -- ./plugins/webp-uploads --standard=./plugins/webp-uploads/phpcs.xml.dist",
"phpstan": [
"composer --working-dir=phpstan install --no-interaction",
"phpstan/vendor/bin/phpstan analyse --memory-limit=2048M"
],
"test": "phpunit --strict-coverage",
"test-multisite": [
"WP_MULTISITE=1 phpunit --exclude-group=ms-excluded"
],
"test-multisite:plugins": [
"@test-multisite:auto-sizes",
"@test-multisite:dominant-color-images",
"@test-multisite:embed-optimizer",
"@test-multisite:image-prioritizer",
"@test-multisite:optimization-detective",
"@test-multisite:performance-lab",
"@test-multisite:speculation-rules",
"@test-multisite:web-worker-offloading",
"@test-multisite:webp-uploads"
],
"test-multisite:auto-sizes": "@test-multisite --verbose --testsuite auto-sizes",
"test-multisite:dominant-color-images": "@test-multisite --verbose --testsuite dominant-color-images",
"test-multisite:embed-optimizer": "@test-multisite --verbose --testsuite embed-optimizer",
"test-multisite:image-prioritizer": "@test-multisite --verbose --testsuite image-prioritizer",
"test-multisite:optimization-detective": "@test-multisite --verbose --testsuite optimization-detective",
"test-multisite:performance-lab": "@test-multisite --verbose --testsuite performance-lab",
"test-multisite:speculation-rules": "@test-multisite --verbose --testsuite speculation-rules",
"test-multisite:web-worker-offloading": "@test-multisite --verbose --testsuite web-worker-offloading",
"test-multisite:webp-uploads": "@test-multisite --verbose --testsuite webp-uploads",
"test:plugins": [
"@test:auto-sizes",
"@test:dominant-color-images",
"@test:embed-optimizer",
"@test:image-prioritizer",
"@test:optimization-detective",
"@test:performance-lab",
"@test:speculation-rules",
"@test:web-worker-offloading",
"@test:webp-uploads"
],
"test:auto-sizes": "@test --verbose --testsuite auto-sizes",
"test:dominant-color-images": "@test --verbose --testsuite dominant-color-images",
"test:embed-optimizer": "@test --verbose --testsuite embed-optimizer",
"test:image-prioritizer": "@test --verbose --testsuite image-prioritizer",
"test:optimization-detective": "@test --verbose --testsuite optimization-detective",
"test:performance-lab": "@test --verbose --testsuite performance-lab",
"test:speculation-rules": "@test --verbose --testsuite speculation-rules",
"test:web-worker-offloading": "@test --verbose --testsuite web-worker-offloading",
"test:webp-uploads": "@test --verbose --testsuite webp-uploads"
}
}