build: 打通 FastAPI 与 Vue 最小工程、依赖与数据库连接

后端入口、配置、Redis 与 Alembic 迁移就位;前端 Vite 工程可安装可构建。
This commit is contained in:
WangShen007 committed 2026-09-22 20:15:00 +08:00
1 parent fb0ddca4de
commit 2aee6286d6
167 files changed
+26082

No files matched your search

+23
View File
@@ -0,0 +1,23 @@
import { fileURLToPath } from 'node:url'
import { defineConfig, configDefaults } from 'vitest/config'
import vue from '@vitejs/plugin-vue'
import vueJsx from '@vitejs/plugin-vue-jsx'
export default defineConfig({
plugins: [vue(), vueJsx()],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url)),
// vite-plugin-pwa virtual module doesn't exist under vitest
'virtual:pwa-register': fileURLToPath(
new URL('./src/__tests__/stubs/pwa-register.ts', import.meta.url)
),
},
},
test: {
environment: 'jsdom',
// Playwright specs (the enterprise suite lives under its module), not vitest.
exclude: [...configDefaults.exclude, 'e2e/**', 'src/modules/enterprise/e2e/**'],
root: fileURLToPath(new URL('./', import.meta.url)),
},
})