名称: turborepo 描述: Turborepo 配置、缓存与流水线优化。 允许使用的工具: 读取、写入、编辑、Bash、Glob、Grep
Turborepo 技能
为 Turborepo 单体仓库管理提供专家级协助。
能力
- 配置 Turborepo
- 设置缓存
- 定义流水线
- 优化构建
- 处理依赖关系
配置
// turbo.json
{
"$schema": "https://turbo.build/schema.json",
"globalDependencies": ["**/.env"],
"pipeline": {
"build": {
"dependsOn": ["^build"],
"outputs": ["dist/**", ".next/**"]
},
"test": {
"dependsOn": ["build"],
"outputs": []
},
"lint": {
"outputs": []
},
"dev": {
"cache": false,
"persistent": true
}
}
}
目标流程
- 单体仓库设置
- 构建优化
- CI/CD 优化