feat: 引入 Turborepo 优化构建流程

- 添加 Turborepo 缓存目录到忽略列表
- 添加 Turbo 2.7.5 版本及其各平台兼容的二进制文件以支持多平台构建和开发环境。
- 使用 turbo 管理构建和开发脚本,统一构建流程并简化脚本配置
- 移除构建配置中的自定义开发和构建命令,使用默认的构建行为。
- 添加 Turbo 配置文件以定义构建和开发任务依赖关系,启用持久化开发模式并禁用包管理器检查。
This commit is contained in:
2026-01-18 15:56:44 +08:00
parent fc73243687
commit 10895b2c9f
5 changed files with 44 additions and 6 deletions

23
turbo.json Normal file
View File

@@ -0,0 +1,23 @@
{
"$schema": "./node_modules/turbo/schema.json",
"ui": "tui",
"dangerouslyDisablePackageManagerCheck": true,
"tasks": {
"build:compile": {
"dependsOn": ["build:vite"]
},
"build:tauri": {
"dependsOn": ["build:compile"]
},
"dev": {
"persistent": true,
"cache": false
},
"dev:tauri": {
"persistent": true,
"cache": false,
"dependsOn": ["build:compile"],
"with": ["dev:vite"]
}
}
}