web: add lightspeed tools

This commit is contained in:
2026-05-20 01:02:02 +02:00
parent 80f7641e74
commit f536cfc591
3 changed files with 2678 additions and 9 deletions
+1
View File
@@ -1,3 +1,4 @@
.vscode .vscode
.DS_Store .DS_Store
*.swp *.swp
scratch/
+2668 -7
View File
File diff suppressed because it is too large Load Diff
+9 -2
View File
@@ -7,7 +7,12 @@
"build": "next build", "build": "next build",
"start": "next start", "start": "next start",
"lint": "next lint", "lint": "next lint",
"codegen": "graphql-codegen" "codegen": "graphql-codegen",
"perf:build": "next build",
"perf:serve": "next start -p 3100",
"perf:lh:desktop": "lighthouse http://localhost:3100/ --preset=desktop --output=html --output=json --output-path=../scratch/lighthouse/home-desktop --only-categories=performance --chrome-flags=\"--headless=new\" --quiet",
"perf:lh:mobile": "lighthouse http://localhost:3100/ --output=html --output=json --output-path=../scratch/lighthouse/home-mobile --only-categories=performance --chrome-flags=\"--headless=new\" --quiet",
"perf:lh": "wait-on http://localhost:3100/ && npm run perf:lh:desktop && npm run perf:lh:mobile"
}, },
"dependencies": { "dependencies": {
"@graphql-codegen/cli": "^7.0.0", "@graphql-codegen/cli": "^7.0.0",
@@ -36,7 +41,9 @@
"baseline-browser-mapping": "^2.10.29", "baseline-browser-mapping": "^2.10.29",
"eslint": "^9", "eslint": "^9",
"eslint-config-next": "16.2.6", "eslint-config-next": "16.2.6",
"typescript": "^6" "lighthouse": "^13.3.0",
"typescript": "^6",
"wait-on": "^9.0.10"
}, },
"overrides": { "overrides": {
"@types/react": "19.2.14", "@types/react": "19.2.14",