turborepo
仓库创建 2026年1月28日最近提交 1 个月前SkillHot 收录 20 天前
▸ 精选理由
通过远程缓存与依赖图优化 CI 与本地构建效率,适合大仓库。
这个 Skill 做什么
面向 monorepo 的构建与任务缓存系统,支持并行与增量构建策略。
为 monorepo 提供并行构建与任务缓存,能把重复的构建/测试输出缓存起来显著加速本地和 CI。适合管理多个互相依赖的包、只跑受影响包或优化构建管线时使用。核心是在依赖图上并行执行并复用本地或远程缓存,提倡把任务放在包级而非根目录。
▸ 展开 SKILL.md 英文原文
Turborepo monorepo build system guidance. Triggers on: turbo.json, task pipelines, dependsOn, caching, remote cache, the "turbo" CLI, --filter, --affected, CI optimization, environment variables, internal packages, monorepo structure/best practices, and boundaries. Use when user: configures tasks/workflows/pipelines, creates packages, sets up monorepo, shares code between apps, runs changed/affected packages, debugs cache, or has apps/packages directories.
5.7k
Stars
314
Forks
19
仓库内 Skill
+173
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/antfu/skills/main/skills/turborepo/SKILL.md或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/antfu/skills/main/skills/turborepo/SKILL.md"SKILL.MD 节选查看完整文件 ↗
# Turborepo Skill
Build system for JavaScript/TypeScript monorepos. Turborepo caches task outputs and runs tasks in parallel based on dependency graph.
## IMPORTANT: Package Tasks, Not Root Tasks
**Prefer package tasks over Root Tasks.**
When creating tasks/scripts/pipelines, you MUST default to package tasks:
1. Add the script to each relevant package's `package.json`
2. Register the task in root `turbo.json`
3. Root `package.json` only delegates via `turbo run <task>`
**DO NOT** put task logic in root `package.json` when it can live in packages. This defeats Turborepo's parallelization.
```json
// DO THIS: Scripts in each package
// apps/web/package.json
{ "scripts": { "build": "nexvia SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有