forked from imbytecat/fullstack-starter
refactor: 重构构建流程,提升输出灵活性与配置性
- 移除目标映射表并根据配置前缀生成输出文件名,使构建输出更灵活可配置 - 重构构建任务配置,将原有分步构建逻辑合并为统一的编译任务,明确依赖关系和输出路径
This commit is contained in:
@@ -2,26 +2,9 @@
|
||||
"$schema": "../../node_modules/turbo/schema.json",
|
||||
"extends": ["//"],
|
||||
"tasks": {
|
||||
"build:compile": {
|
||||
"dependsOn": ["build:vite"],
|
||||
"outputs": ["out/**", "src-tauri/binaries/**"]
|
||||
},
|
||||
"build:tauri": {
|
||||
"dependsOn": ["build:compile"],
|
||||
"outputs": ["src-tauri/target/release/bundle/**"]
|
||||
},
|
||||
"build:vite": {
|
||||
"outputs": [".output/**"]
|
||||
},
|
||||
"dev:tauri": {
|
||||
"cache": false,
|
||||
"dependsOn": ["build:compile"],
|
||||
"persistent": true,
|
||||
"with": ["dev:vite"]
|
||||
},
|
||||
"dev:vite": {
|
||||
"cache": false,
|
||||
"persistent": true
|
||||
"compile": {
|
||||
"dependsOn": ["build"],
|
||||
"outputs": ["out/**"]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user