turborepo

Configure Turborepo pipelines and caching for JavaScript/TypeScript monorepos.

30.9k|2.4k|Updated Oct 5, 2021
One-click install
npx skills add https://github.com/vercel/turborepo --skill turborepo-vercel
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: turborepo
Source: https://github.com/vercel/turborepo/tree/main/skills/turborepo
Command: npx skills add https://github.com/vercel/turborepo --skill turborepo-vercel

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Turborepo coordinates and accelerates task execution across a JavaScript/TypeScript monorepo, enabling caching, parallelization, and optimized pipelines to reduce build times and manage complex workflows.

Core Features & Use Cases

  • Centralizes per-package task configuration, enabling scalable orchestration across apps and packages
  • Enables caching and parallel execution to speed up builds, tests, and CI
  • Use cases include configuring pipelines, sharing tasks across packages, and optimizing monorepo workflows

Quick Start

Use turbo run to execute per-package tasks with proper package-specific configuration, e.g., turbo run build --filter=web

Frequently Asked Questions about turborepo

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I configure monorepo task orchestration and caching with Turborepo?

Monorepo task orchestration with Turborepo is configured by defining per-package tasks and caching strategies in turbo.json. You execute these workflows across JavaScript/TypeScript workspaces using the turbo run command to coordinate builds, tests, and pipelines.

What is the best way to share build tasks across multiple packages in a monorepo?

Sharing build tasks across packages requires centralizing per-package task definitions within your monorepo configuration. By enforcing correct turbo.run usage and root versus package turbo.json configuration, you enable parallel execution and caching across all apps and packages.

How do I run a build task for a specific app in a JavaScript monorepo?

To run a build task for a specific app, use the turbo run command with the filter flag, such as turbo run build --filter=web. This executes the package-specific task definition while leveraging caching and parallelization to accelerate the build.

Does Turborepo work with JavaScript and TypeScript workspaces for CI pipelines?

Yes, Turborepo supports JavaScript and TypeScript workspaces by orchestrating tasks and caching to speed up builds, tests, and CI pipelines. It applies proper root versus package turbo.json configuration to manage complex workflows across apps and packages efficiently.

Why configure root versus package turbo.json files differently in a monorepo?

Configuring root versus package turbo.json differently ensures correct per-package task definitions and proper turbo.run usage. This separation enforces scalable orchestration across apps and packages, enabling accurate caching and parallel execution for monorepo workflows.