turborepo

Coordinate monorepo builds by caching task outputs and parallelizing across packages.

Updated Apr 10, 2024
One-click install
npx skills add https://github.com/Xenous-Inc/turborepo-template --skill turborepo-xenous-inc
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: turborepo
Source: https://github.com/Xenous-Inc/turborepo-template/tree/main/.agents/skills/turborepo
Command: npx skills add https://github.com/Xenous-Inc/turborepo-template --skill turborepo-xenous-inc

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Turborepo helps teams overcome slow builds in large monorepos by caching task outputs and orchestrating parallel execution across packages.

Core Features & Use Cases

  • Per-package tasks for parallel execution and precise caching across apps and libraries
  • Package configurations to tailor framework outputs and dependencies close to code
  • CI-friendly, supports affected builds, and advanced filtering to only run what changed

Quick Start

Install Turborepo in your monorepo, convert root tasks to per-package scripts, and declare a root turbo.json to orchestrate tasks; then run turbo run build to validate the workflow.

Frequently Asked Questions about turborepo

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

FAQPage Schema
How do I speed up slow builds in a large monorepo?▼

To scale monorepos, coordinate builds by caching task outputs and orchestrating parallel execution across packages. This approach uses a task graph and selective execution to improve CI pipeline throughput.

How do I configure per-package tasks for parallel execution in a monorepo?▼

Convert root scripts to per-package scripts and declare a root turbo.json file to orchestrate tasks. This setup tailors framework outputs and dependencies close to the code for precise caching.

Can I run only the tasks that changed in my CI pipeline?▼

Yes, you can run only what changed by using affected builds and advanced filtering. This CI-friendly feature ensures selective execution, skipping unaffected packages to save time and resources.

What is the best way to orchestrate tasks across multiple packages?▼

The best way to orchestrate tasks across multiple packages is to use a task graph for parallel execution and precise caching. This method accelerates builds by intelligently managing dependencies and outputs.

How does task caching work for monorepo builds?▼

Task caching stores the outputs of completed package tasks so they can be reused later. When you run a build, the system checks the cache first, skipping redundant work and accelerating the overall build process.

Do I need a specific package manager to use Turborepo?▼

Turborepo integrates into your existing monorepo setup by using a root turbo.json file to orchestrate tasks. It works with your current package configurations to manage dependencies and framework outputs.