forked from OWASP/Nest
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlighthouserc.js
More file actions
37 lines (35 loc) · 905 Bytes
/
Copy pathlighthouserc.js
File metadata and controls
37 lines (35 loc) · 905 Bytes
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
const LHCI_BASE_URL = process.env.LHCI_BASE_URL || 'http://localhost:3000'
const LHCI_CHROME_FLAGS =
process.env.LHCI_CHROME_FLAGS || '--disable-dev-shm-usage --headless --no-sandbox'
const URL_PATHS = [
'/',
'/about',
'/chapters',
'/contribute',
'/members',
'/organizations',
'/projects',
'/snapshots',
]
module.exports = {
ci: {
assert: {
assertions: {
'categories:accessibility': ['warn', { minScore: 0.9 }],
'categories:best-practices': ['warn', { minScore: 0.9 }],
'categories:performance': ['warn', { minScore: 0.9 }],
'categories:seo': ['warn', { minScore: 0.9 }],
},
},
collect: {
numberOfRuns: 1,
settings: {
chromeFlags: LHCI_CHROME_FLAGS,
},
url: URL_PATHS.map((url_path) => `${LHCI_BASE_URL}${url_path}`),
},
upload: {
target: 'temporary-public-storage',
},
},
}