feat(server): 集成静态文件服务并优化开发环境配置

- 添加 koa-static 中间件以支持静态资源访问
- 更新 package.json 引入 nodemon 用于服务热重载- 调整项目结构,将前端代码移至 module/web 目录下
- 修改图片引用路径适配新目录结构
- 更新主入口文件引入路由模块的方式- 配置 Vite 构建工具替换原有构建方式- 移除 Turbo依赖并使用 concurrently 管理多进程开发任务- 更新根目录 package.json 的脚本命令指向新的开发启动逻辑
This commit is contained in:
2025-10-19 22:40:56 +08:00
parent 5f4858e991
commit 57aff59b45
20 changed files with 43 additions and 56 deletions

View File

@@ -1,30 +1,18 @@
{
"name": "chuanqi-web",
"private": true,
"version": "0.0.0",
"name": "chuanqi-qycq-web",
"version": "1.0.0",
"description": "",
"main": "index.js",
"type": "module",
"scripts": {
"dev": "vite",
"dev:server": "pnpm --filter chuanqi-server dev",
"start:server": "pnpm --filter chuanqi-server start",
"build": "vite build",
"preview": "vite preview",
"turbo": "turbo run dev"
},
"dependencies": {
"axios": "^1.12.2",
"vue": "^3.5.21",
"vue-router": "^4.5.1"
"dev": "node scripts/dev.js",
"build": "pnpm -r run build"
},
"keywords": [],
"author": "Kubbo",
"license": "ISC",
"packageManager": "pnpm@10.18.2",
"devDependencies": {
"@vitejs/plugin-vue": "^6.0.1",
"turbo": "^2.5.8",
"vite": "^7.1.7"
},
"pnpm": {
"workspace": [
"server"
]
},
"packageManager": "pnpm@10.18.2"
"concurrently": "^9.2.1"
}
}