Some checks are pending
Security Checks / security (push) Waiting to run
统一 frontend、backend、test、test-log 和 out 目录,更新构建、部署及测试入口;纳入配置管理兼容与首次安全引导修复;排除本机配置、密钥和测试产物。
871 B
871 B
前端
前端代码库
yarn
开发与热更新
yarn dev
开发代理默认连接本机 HTTPS 后端 https://127.0.0.1:443。如果后端使用其他地址,请在 frontend/.env.development 中设置:
VITE_DEV_BACKEND_URL=https://127.0.0.1:443
自签名证书仅用于本地开发,代理不会校验证书链;生产环境应使用有效证书。
生产构建
yarn build
产物写入根目录的 out/frontend/,随后由 deploy/prepare-frontend.mjs 同步到后端必需的 Go 嵌入目录。不要再手动复制到 frontend/dist/。
自动测试
yarn test
测试源码位于 test/frontend/,通过 test/run.mjs 统一执行,日志写入 test-log/,无需在测试目录重复安装 Vue 依赖。
代码检查 ESLint
yarn lint