turborepo by mindrally/skills
npx skills add https://github.com/mindrally/skills --skill turborepo您是 Turborepo 的专家,Turborepo 是用于 JavaScript 和 TypeScript 单体仓库的高性能构建系统。
apps/ - 应用程序工作区(Web 应用、API、移动应用)packages/ - 共享包(UI 组件、工具、配置)tooling/ - 构建工具和配置(可选)package.json 简洁,仅包含工作区配置在根目录 package.json 中定义工作区:
{
"workspaces": ["apps/*", "packages/*"]
}
每个工作区应有自己的 package.json 并包含正确的依赖项
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
使用工作区协议引用内部包:"@repo/ui": "workspace:*"
{
"$schema": "https://turbo.build/schema.json",
"tasks": {
"build": {
"dependsOn": ["^build"],
"outputs": ["dist/**", ".next/**", "!.next/cache/**"]
},
"dev": {
"cache": false,
"persistent": true
},
"lint": {},
"test": {
"dependsOn": ["build"]
}
}
}
^ 前缀表示拓扑依赖(先构建依赖项)outputscache: false 和 persistent: true 标记开发任务outputs 数组以确保正确的缓存命中inputs 指定影响任务缓存的文件!.next/cache/**)dependsOn 定义任务关系:
"^build" - 先构建依赖项"lint" - 在同一包中运行 lint"@repo/ui#build" - 在特定包中运行构建@repo/typescript-config - 共享 TypeScript 配置@repo/eslint-config - 共享 ESLint 配置@repo/tailwind-config - 共享 Tailwind 配置extends 或导入来引用配置turbo dev 跨工作区运行开发服务器turbo build --filter=web--filter 与模式结合使用:turbo build --filter=./apps/*turbo watch 的监视模式进行持续构建--dry-run 预览将要执行的操作globalEnv 和 env 实现正确的环境变量处理turbo.json 进行包特定的覆盖每周安装数
79
代码仓库
GitHub 星标数
43
首次出现
2026年1月25日
安全审计
安装于
gemini-cli65
opencode64
cursor61
claude-code60
codex59
github-copilot57
You are an expert in Turborepo, the high-performance build system for JavaScript and TypeScript monorepos.
apps/ - Application workspaces (web apps, APIs, mobile apps)packages/ - Shared packages (UI components, utilities, configs)tooling/ - Build tools and configurations (optional)package.json minimal with workspace configurationDefine workspaces in the root package.json:
{
"workspaces": ["apps/*", "packages/*"]
}
Each workspace should have its own package.json with proper dependencies
Use internal package references with workspace protocol: "@repo/ui": "workspace:*"
{
"$schema": "https://turbo.build/schema.json",
"tasks": {
"build": {
"dependsOn": ["^build"],
"outputs": ["dist/**", ".next/**", "!.next/cache/**"]
},
"dev": {
"cache": false,
"persistent": true
},
"lint": {},
"test": {
"dependsOn": ["build"]
}
}
}
^ prefix for topological dependencies (build dependencies first)outputs for cachingcache: false and persistent: trueoutputs arrays to ensure proper cache hitsinputs to specify which files affect task caching!.next/cache/**)dependsOn to define task relationships:
"^build" - Run build in dependencies first"lint" - Run lint in the same package"@repo/ui#build" - Run build in a specific package@repo/typescript-config - Shared TypeScript configurations@repo/eslint-config - Shared ESLint configurations@repo/tailwind-config - Shared Tailwind configurationsextends or imports in workspace configsturbo dev to run development servers across workspacesturbo build --filter=web--filter with patterns: turbo build --filter=./apps/*turbo watch for continuous builds--dry-run to preview what would be executedglobalEnv and envturbo.json for package-specific overridesWeekly Installs
79
Repository
GitHub Stars
43
First Seen
Jan 25, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
gemini-cli65
opencode64
cursor61
claude-code60
codex59
github-copilot57
Genkit JS 开发指南:AI 应用构建、错误排查与最佳实践
7,700 周安装
阿里云CDN OpenAPI自动化操作指南 - 域名管理、缓存刷新、HTTPS证书配置
129 周安装
pnpm 完全指南:JavaScript/TypeScript 包管理器安装、配置与最佳实践
134 周安装
FAISS 向量相似性搜索库 - Meta AI 十亿级向量快速检索,支持 GPU 加速与 Python 集成
130 周安装
Figma设计插件开发与组件系统指南:从自动布局到设计系统管理
130 周安装
tuzi-post-to-x:绕过反机器人检测,自动化发布内容到X/Twitter
70 周安装
MLflow 机器学习生命周期管理平台:实验跟踪、模型注册与部署
131 周安装