ci: establish trusted quality baseline

This commit is contained in:
2026-07-15 17:34:17 +08:00
parent c277b3e6ca
commit 86ffbbcdbc
7 changed files with 136 additions and 17 deletions
+3
View File
@@ -12,6 +12,8 @@
"build:start": "pnpm install && pnpm run build && pnpm run start",
"lint": "eslint",
"lint:fix": "eslint --fix",
"typecheck": "tsc --noEmit",
"quality": "pnpm lint && pnpm typecheck && pnpm test",
"test": "vitest run",
"test:watch": "vitest",
"test:ui": "vitest --ui",
@@ -22,6 +24,7 @@
"test:e2e:real": "E2E_REAL_BACKEND=1 PLAYWRIGHT_BASE_URL=${PLAYWRIGHT_BASE_URL:-https://frontend-test.banlv-ai.com} E2E_API_BASE_URL=${E2E_API_BASE_URL:-https://proapi.banlv-ai.com} playwright test --project=real-backend",
"test:e2e:prod": "E2E_REAL_BACKEND=1 PLAYWRIGHT_BASE_URL=${PLAYWRIGHT_BASE_URL:-https://cozsweet.com} E2E_API_BASE_URL=${E2E_API_BASE_URL:-https://proapi.banlv-ai.com} playwright test --project=prod-smoke",
"perf:bundle": "next experimental-analyze --output && node scripts/performance/report-bundle.mjs",
"perf:bundle:check": "PERF_BUNDLE_ENFORCE=1 pnpm perf:bundle",
"perf:vitals": "node scripts/performance/collect-web-vitals.mjs",
"generate-barrels": "barrelsby --delete -c barrelsby.json"
},