Wires the script step and preview server into the build
The build now moves inline scripts and fails on a violation. Lighthouse audits /404.html, because it refuses a page with a real 404 status. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+4
-3
@@ -6,8 +6,9 @@
|
||||
"packageManager": "pnpm@12.11.2",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
"build": "tsc && vite build",
|
||||
"preview": "vite preview",
|
||||
"build": "tsc && vite build && node config/externalizeInlineScripts.ts",
|
||||
"preview": "node config/previewServer.ts",
|
||||
"e2e": "vitest run --config vitest.e2e.config.ts",
|
||||
"postinstall": "chakra typegen ./src/theme.ts",
|
||||
"typegen": "chakra typegen ./src/theme.ts",
|
||||
"typegen:watch": "chakra typegen ./src/theme.ts --watch",
|
||||
@@ -19,7 +20,7 @@
|
||||
"audit:dev": "pnpm audit || echo Meldingen in ontwikkeltools blokkeren niet, zie NFR-SEC-05",
|
||||
"lighthouse": "lhci autorun && lhci autorun --config=lighthouserc.desktop.cjs",
|
||||
"server-config": "node config/writeServerConfig.ts",
|
||||
"check": "pnpm lint && pnpm format:check && pnpm test && pnpm build && pnpm audit:deps && pnpm audit:dev && pnpm lighthouse"
|
||||
"check": "pnpm lint && pnpm format:check && pnpm test && pnpm build && pnpm e2e && pnpm audit:deps && pnpm audit:dev && pnpm lighthouse"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@chakra-ui/cli": "^3.37.0",
|
||||
|
||||
Reference in New Issue
Block a user