feat(skeleton): T1 前端工程壳——vite5 + vue3 + TS 最小壳
build / build (push) Successful in 1m23s

- 只建壳:index.html / src/main.ts / src/App.vue(占位)/ src/env.d.ts / vite.config.ts / tsconfig{,.node}.json / .npmrc / .gitignore
- base="./"(同 notice / flow-center 口径),保证 projman /form-center/ 挂载下静态资源可取;dev 端口 8089
- package-lock.json 入库:CI 走 npm ci,无锁即红
- typescript 5.2.2 + vue-tsc 1.8.27 锁死配对(^5.2.2 会解析到 5.9,vue-tsc 1.8 直接崩在 supportedTSExtensions patch)
- 自验:npm run build 过、npm run type-check 无报错
- 平台约定(A 类 loader / view-ui-plus 1.3.24 / alova / router / layout)留 T5 落地
This commit is contained in:
chenxing
2026-10-14 12:21:19 +08:00
parent fd28372b69
commit cebc32fbef
11 changed files with 1517 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
// T1 只做工程壳(CI 的 npm ci + npm run build 必须过)。
// T5 fork notice/front 时在此接入 A 类 loader、auto-import、svg icons、dev proxy 等平台约定。
export default defineConfig({
// 相对路径产物:静态资源在 projman 的 /form-center/ 挂载下也能取到(同 notice / flow-center 口径)
base: "./",
plugins: [vue()],
build: {
outDir: "dist"
},
server: {
// 本地 dev 端口(后端 8086;8077=notice front、8087=svc-hall front、8088=flow-center front 顺延)
port: 8089
}
});