turborepo

Configure Turborepo pipelines and caching rules in turbo.json for monorepo tasks.

5|Updated Feb 6, 2022
One-click install
npx skills add https://github.com/christofferbergj/dotfiles --skill turborepo-christofferbergj
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: turborepo
Source: https://github.com/christofferbergj/dotfiles/tree/main/.agents/skills/turborepo
Command: npx skills add https://github.com/christofferbergj/dotfiles --skill turborepo-christofferbergj

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Turborepo monorepo build system guidance helps teams orchestrate tasks, caching, and pipelines across multiple apps and packages.

Core Features & Use Cases

  • Define per-package and root tasks in turbo.json to enable parallel execution
  • Use dependsOn, outputs, inputs, and env to control caching, invalidation, and runtime behavior
  • Employ Package Configurations to keep package-specific overrides close to the code they affect

Quick Start

Create a root turbo.json and per-package turbo.json to begin orchestrating tasks with turbo run.

Frequently Asked Questions about turborepo

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

FAQPage Schema
How do I speed up monorepo builds and task execution across multiple packages?

You can speed up monorepo builds by defining deterministic pipelines and caching rules in turbo.json. Coordinating per-package and root tasks enables parallel execution and safe caching across apps and packages.

How do I configure task dependencies and caching in a Turborepo monorepo?

Configure task dependencies and caching in a Turborepo monorepo by using the dependsOn, outputs, inputs, and env keys within turbo.json to control runtime behavior and cache invalidation.

What are transit nodes in Turborepo and how do they affect task parallelism?

Transit nodes in Turborepo are used to maximize task parallelism across your monorepo. They help the orchestrator safely schedule and execute independent per-package tasks concurrently.

Can I define package-specific task overrides in a monorepo setup?

Yes, you can define package-specific task overrides using Package Configurations. This feature keeps per-package caching and pipeline rules close to the specific code they affect.

How do I set up CI workflows for building and testing a multi-project repository?

Set up CI workflows for a multi-project repository by creating a root turbo.json and per-package turbo.json files, then use turbo run to orchestrate deterministic building, testing, and deploying pipelines.

When do I need to define inputs and env variables for monorepo task caching?

Define inputs and env variables when you need precise control over cache invalidation and runtime behavior for monorepo tasks. This ensures safe caching by tracking exact file and environment changes.