forked from oppia/oppia
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.lighthouserc.json
197 lines (197 loc) · 8.88 KB
/
.lighthouserc.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
194
195
196
197
{
"ci": {
"collect": {
"numberOfRuns": 1,
"startServerCommand": "python -m scripts.start --no_browser --prod_env",
"startServerReadyPattern": "default: \"GET /_ah/warmup HTTP/1.1\"",
"startServerReadyTimeout": 250000,
"url": [
"http://127.0.0.1:8181/",
"http://127.0.0.1:8181/about",
"http://127.0.0.1:8181/contact",
"http://127.0.0.1:8181/donate",
"http://127.0.0.1:8181/get-started",
"http://127.0.0.1:8181/community-library",
"http://127.0.0.1:8181/privacy",
"http://127.0.0.1:8181/teach",
"http://127.0.0.1:8181/terms",
"http://127.0.0.1:8181/thanks"
]
},
"assert": {
"assertMatrix": [
{
"matchingUrlPattern": ".*",
"assertions": {
"first-contentful-paint": [ "warn", {"maxNumericValue": 1230000}],
"first-meaningful-paint": ["warn", {"maxNumericValue": 1280000}],
"first-cpu-idle": ["warn", {"maxNumericValue": 1460000}],
"speed-index": ["warn", {"maxNumericValue": 1230000}],
"interactive": ["warn", {"maxNumericValue": 1540000}],
"max-potential-fid": ["warn", {"maxNumericValue": 130000}],
"uses-responsive-images": ["error", {"minScore": 1}],
"uses-optimized-images": ["error", {"minScore": 1}],
"uses-rel-preconnect": ["error", {"minScore": 0.5}],
"time-to-first-byte": ["error", {"minScore": 1}],
"redirects": ["error", {"minScore": 1}],
"uses-rel-preload": ["error", {"minScore": 1}],
"efficient-animated-content": ["error",{"minScore": 1}],
"appcache-manifest": ["error", {"minScore": 1}],
"errors-in-console": ["error", {"minScore": 1}],
"is-on-https": ["error", {"minScore": 1}],
"uses-passive-event-listeners": ["error", {"minScore": 1}],
"no-document-write": ["error", {"minScore": 1}],
"external-anchors-use-rel-noopener": ["error", {"minScore": 1}],
"geolocation-on-start": ["error", {"minScore": 1}],
"doctype": ["error", {"minScore": 1}],
"no-vulnerable-libraries": ["error", {"minScore": 1}],
"js-libraries": ["error", {"minScore": 1}],
"notification-on-start": ["error", {"minScore": 1}],
"deprecations": ["error", {"minScore": 1}],
"password-inputs-can-be-pasted-into": ["error", {"minScore": 1}],
"image-aspect-ratio": ["error", {"minScore": 1}]
}
},
{
"matchingUrlPattern": "http://[^/]+/$",
"assertions": {
"time-to-first-byte": ["off", {"minScore": 1}],
"render-blocking-resources": ["error", {"minScore": 0}],
"unminified-css": ["error", {"minScore": 0}],
"unminified-javascript": ["error", {"minScore": 0}],
"unused-css-rules": ["error", {"minScore": 0}],
"uses-text-compression": ["error", {"minScore": 0}],
"uses-http2": ["error", {"minScore": 0}]
}
},
{
"matchingUrlPattern": "http://[^/]+/about$",
"assertions": {
"offscreen-images": ["error", {"minScore": 0}],
"render-blocking-resources": ["error", {"minScore": 0}],
"unminified-css": ["error", {"minScore": 0}],
"unminified-javascript": ["error", {"minScore": 0}],
"unused-css-rules": ["error", {"minScore": 0}],
"uses-text-compression": ["error", {"minScore": 0}],
"uses-http2": ["error", {"minScore": 0}]
}
},
{
"matchingUrlPattern": "http://[^/]+/contact$",
"assertions": {
"offscreen-images": ["error", {"minScore": 0}],
"uses-webp-images": ["error", {"minScore": 1}],
"render-blocking-resources": ["error", {"minScore": 0}],
"unminified-css": ["error", {"minScore": 0}],
"unminified-javascript": ["error", {"minScore": 0}],
"unused-css-rules": ["error", {"minScore": 0}],
"uses-text-compression": ["error", {"minScore": 0}],
"uses-http2": ["error", {"minScore": 0}],
"errors-in-console": ["error", {"minScore": 0}]
}
},
{
"matchingUrlPattern": "http://[^/]+/donate$",
"assertions": {
"offscreen-images": ["error", {"minScore": 1}],
"uses-webp-images": ["error", {"minScore": 0}],
"render-blocking-resources": ["error", {"minScore": 0}],
"unminified-css": ["error", {"minScore": 0}],
"unminified-javascript": ["error", {"minScore": 0}],
"unused-css-rules": ["error", {"minScore": 0}],
"uses-text-compression": ["error", {"minScore": 0}],
"uses-http2": ["error", {"minScore": 0}],
"errors-in-console": ["error", {"minScore": 0}]
}
},
{
"matchingUrlPattern": "http://[^/]+/get-started$",
"assertions": {
"offscreen-images": ["error", {"minScore": 0}],
"uses-webp-images": ["error", {"minScore": 1}],
"render-blocking-resources": ["error", {"minScore": 0}],
"unminified-css": ["error", {"minScore": 0}],
"unminified-javascript": ["error", {"minScore": 0}],
"unused-css-rules": ["error", {"minScore": 0}],
"uses-text-compression": ["error", {"minScore": 0}],
"uses-http2": ["error", {"minScore": 0}],
"errors-in-console": ["error", {"minScore": 0}]
}
},
{
"matchingUrlPattern": "http://[^/]+/community-library$",
"assertions": {
"offscreen-images": ["error", {"minScore": 1}],
"uses-webp-images": ["error", {"minScore": 0}],
"render-blocking-resources": ["error", {"minScore": 0}],
"unminified-css": ["error", {"minScore": 0}],
"unminified-javascript": ["error", {"minScore": 0}],
"unused-css-rules": ["error", {"minScore": 0}],
"uses-text-compression": ["error", {"minScore": 0}],
"uses-http2": ["error", {"minScore": 0}],
"errors-in-console": ["error", {"minScore": 0}]
}
},
{
"matchingUrlPattern": "http://[^/]+/privacy$",
"assertions": {
"offscreen-images": ["error", {"minScore": 1}],
"uses-webp-images": ["error", {"minScore": 1}],
"render-blocking-resources": ["error", {"minScore": 0}],
"unminified-css": ["error", {"minScore": 0}],
"unminified-javascript": ["error", {"minScore": 0}],
"unused-css-rules": ["error", {"minScore": 0}],
"uses-text-compression": ["error", {"minScore": 0}],
"uses-http2": ["error", {"minScore": 0}],
"errors-in-console": ["error", {"minScore": 0}]
}
},
{
"matchingUrlPattern": "http://[^/]+/teach$",
"assertions": {
"offscreen-images": ["error", {"minScore": 0}],
"uses-webp-images": ["error", {"minScore": 1}],
"render-blocking-resources": ["error", {"minScore": 0}],
"unminified-css": ["error", {"minScore": 0}],
"unminified-javascript": ["error", {"minScore": 0}],
"unused-css-rules": ["error", {"minScore": 0}],
"uses-text-compression": ["error", {"minScore": 0}],
"uses-http2": ["error", {"minScore": 0}],
"errors-in-console": ["error", {"minScore": 0}]
}
},
{
"matchingUrlPattern": "http://[^/]+/terms$",
"assertions": {
"offscreen-images": ["error", {"minScore": 1}],
"uses-webp-images": ["error", {"minScore": 1}],
"render-blocking-resources": ["error", {"minScore": 0}],
"unminified-css": ["error", {"minScore": 0}],
"unminified-javascript": ["error", {"minScore": 0}],
"unused-css-rules": ["error", {"minScore": 0}],
"uses-text-compression": ["error", {"minScore": 0}],
"uses-http2": ["error", {"minScore": 0}],
"errors-in-console": ["error", {"minScore": 0}]
}
},
{
"matchingUrlPattern": "http://[^/]+/thanks$",
"assertions": {
"offscreen-images": ["error", {"minScore": 0}],
"uses-webp-images": ["error", {"minScore": 1}],
"render-blocking-resources": ["error", {"minScore": 0}],
"unminified-css": ["error", {"minScore": 0}],
"unminified-javascript": ["error", {"minScore": 0}],
"unused-css-rules": ["error", {"minScore": 0}],
"uses-text-compression": ["error", {"minScore": 0}],
"uses-http2": ["error", {"minScore": 0}],
"errors-in-console": ["error", {"minScore": 0}]
}
}
]
},
"upload": {
"target": "temporary-public-storage"
}
}
}