Compare commits
2 Commits
ee13b191c3
...
c270b631dd
| Author | SHA1 | Date | |
|---|---|---|---|
| c270b631dd | |||
| 530fed2f7b |
7
.gitignore
vendored
7
.gitignore
vendored
@@ -5,6 +5,7 @@ dist/
|
|||||||
|
|
||||||
# dependencies
|
# dependencies
|
||||||
node_modules/
|
node_modules/
|
||||||
|
.pnpm-store/
|
||||||
|
|
||||||
# logs
|
# logs
|
||||||
npm-debug.log*
|
npm-debug.log*
|
||||||
@@ -22,3 +23,9 @@ pnpm-debug.log*
|
|||||||
|
|
||||||
# jetbrains setting folder
|
# jetbrains setting folder
|
||||||
.idea/
|
.idea/
|
||||||
|
|
||||||
|
# vscode
|
||||||
|
.vscode/
|
||||||
|
|
||||||
|
# Lighthouse CI reports
|
||||||
|
.lighthouseci/
|
||||||
|
|||||||
22
.lighthouserc.cjs
Normal file
22
.lighthouserc.cjs
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
module.exports = {
|
||||||
|
ci: {
|
||||||
|
collect: {
|
||||||
|
staticDistDir: '/app/dist',
|
||||||
|
settings: {
|
||||||
|
chromeFlags: '--no-sandbox --disable-setuid-sandbox --headless=new --disable-gpu --disable-dev-shm-usage',
|
||||||
|
},
|
||||||
|
numberOfRuns: 1
|
||||||
|
},
|
||||||
|
assert: {
|
||||||
|
assertions: {
|
||||||
|
'categories:performance': ['error', {minScore: 0.9}],
|
||||||
|
'categories:accessibility': ['error', {minScore: 0.9}],
|
||||||
|
'categories:best-practices': ['error', {minScore: 0.9}],
|
||||||
|
'categories:seo': ['error', {minScore: 0.9}],
|
||||||
|
},
|
||||||
|
},
|
||||||
|
upload: {
|
||||||
|
target: 'temporary-public-storage',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
||||||
4
.vscode/extensions.json
vendored
4
.vscode/extensions.json
vendored
@@ -1,4 +0,0 @@
|
|||||||
{
|
|
||||||
"recommendations": ["astro-build.astro-vscode", "unifiedjs.vscode-mdx"],
|
|
||||||
"unwantedRecommendations": []
|
|
||||||
}
|
|
||||||
11
.vscode/launch.json
vendored
11
.vscode/launch.json
vendored
@@ -1,11 +0,0 @@
|
|||||||
{
|
|
||||||
"version": "0.2.0",
|
|
||||||
"configurations": [
|
|
||||||
{
|
|
||||||
"command": "./node_modules/.bin/astro dev",
|
|
||||||
"name": "Development server",
|
|
||||||
"request": "launch",
|
|
||||||
"type": "node-terminal"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
14
local-lighthouse.sh
Executable file
14
local-lighthouse.sh
Executable file
@@ -0,0 +1,14 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
mkdir -p ./.lighthouseci
|
||||||
|
|
||||||
|
docker run --rm \
|
||||||
|
--user 0:0 \
|
||||||
|
-v ./dist:/app/dist \
|
||||||
|
-v ./.lighthouserc.cjs:/app/.lighthouserc.cjs \
|
||||||
|
-v ./.lighthouseci:/app/.lighthouseci \
|
||||||
|
-w /app \
|
||||||
|
-e CHROME_PATH=/usr/bin/chromium-browser \
|
||||||
|
zenika/alpine-chrome:with-node \
|
||||||
|
npx @lhci/cli@0.15.x collect \
|
||||||
|
--config=/app/.lighthouserc.cjs
|
||||||
Reference in New Issue
Block a user