From 5ba522753ac6054cd3f3a10cf2c8d5f970a4a6a8 Mon Sep 17 00:00:00 2001 From: XingfenD Date: Wed, 16 Sep 2026 11:21:35 +0800 Subject: [PATCH] docs: README frontend gates (lint/e2e/analyze), bilingual --- docs/README.md | 2 +- docs/README_zh.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/README.md b/docs/README.md index c4f096f..b8c48c6 100644 --- a/docs/README.md +++ b/docs/README.md @@ -48,7 +48,7 @@ go test -p 1 -count=1 ./... `-p 1` is required: integration tests share one PG database and each clears tables with `DELETE FROM ...` — running in parallel deletes each other's data and fails randomly. Bring the dev stack down with `down` (not `rm`), or the anonymous node_modules volume becomes an orphan. Tests that need PG/Redis skip automatically when absent; Redis downtime doesn't break functionality (the whole chain degrades to miss/passthrough, see spec §9). -Frontend gate: `cd frontend && npm run check` (tsc + vitest + vite build). +Frontend gate: `cd frontend && npm run check` (tsc + eslint + prettier + vitest + vite build). E2E is a separate manual pre-release gate against the dev stack: `cd frontend && npm run e2e` (requires `E2E_ADMIN_USER`/`E2E_ADMIN_PASSWORD`, or source `deploy/.env`; one-off browser install inside the web container: `npx playwright install --with-deps chromium`). Bundle report: `npm run analyze` → `dist-stats/stats.html`. ## Old-volume migration (one-off, upgrading from the previous deploy layout) diff --git a/docs/README_zh.md b/docs/README_zh.md index 17a719e..83c6603 100644 --- a/docs/README_zh.md +++ b/docs/README_zh.md @@ -48,7 +48,7 @@ go test -p 1 -count=1 ./... `-p 1` 是必须的:集成测试共用同一个 PG 库,各自 `DELETE FROM ...` 清表——并行跑会互相删数据导致随机失败。dev 栈起停用 `down`(不是 `rm`),否则匿名 node_modules 卷成孤儿。无 PG/Redis 时依赖它们的测试自动 skip;Redis 挂掉不影响功能(全链路降级为 miss/放行,见 spec §9)。 -前端门槛:`cd frontend && npm run check`(tsc + vitest + vite build)。 +前端门槛:`cd frontend && npm run check`(tsc + eslint + prettier + vitest + vite build)。e2e 是独立的手动发布门禁,针对 dev 栈运行:`cd frontend && npm run e2e`(需 `E2E_ADMIN_USER`/`E2E_ADMIN_PASSWORD`,或 source `deploy/.env`;浏览器一次性安装于 web 容器内:`npx playwright install --with-deps chromium`)。体积报告:`npm run analyze` → `dist-stats/stats.html`。 ## 旧卷迁移(一次性,升级自上一版部署)