turborepo

Configure Turborepo pipelines, caching, and CI workflows across monorepo packages.

9|3|Updated Jan 14, 2024
One-click install
npx skills add https://github.com/buchungapp/nationaal-watersportdiploma --skill turborepo-buchungapp
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: turborepo
Source: https://github.com/buchungapp/nationaal-watersportdiploma/tree/main/.agents/skills/turborepo
Command: npx skills add https://github.com/buchungapp/nationaal-watersportdiploma --skill turborepo-buchungapp

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Turborepo monorepo orchestration and caching guidance to simplify managing multi-package JS/TS projects and speed up builds.

Core Features & Use Cases

  • Triggers on turbo.json, task pipelines, dependsOn, caching, remote cache, the "turbo" CLI, --filter, --affected, environment variables, and boundaries.
  • Use when configuring tasks/workflows/pipelines, creating packages, setting up a monorepo, sharing code between apps, runs changed/affected packages, and debugging cache.
  • Real-world scenario: bootstrap a new monorepo with shared libraries, implement selective builds with --affected, and optimize CI with remote caching.

Quick Start

Create per-package turbo.json configurations and run turbo run <task> to validate changes.

Frequently Asked Questions about turborepo

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

FAQPage Schema
How do I configure task pipelines in a Turborepo monorepo?

Configure task pipelines in a Turborepo monorepo by defining tasks and dependencies within the turbo.json file. This orchestrates per-package executions, ensuring specific inputs, outputs, and environment variables are managed across apps and packages.

What is remote caching and how does it speed up CI builds?

Remote caching stores build outputs remotely, allowing CI workflows to skip redundant task executions. By retrieving cached results based on inputs and environment variables, remote caching significantly speeds up CI pipelines across your monorepo apps and packages.

How do I run selective builds for changed packages using --filter?

Run selective builds for changed packages using the --filter or --affected flags with the turbo CLI. This limits task execution to only the affected apps and packages, optimizing build times and reducing unnecessary CI workload.

How do I set up task dependencies using dependsOn in turbo.json?

Set up task dependencies using the dependsOn property in turbo.json to enforce execution order. This ensures prerequisite tasks in your monorepo pipelines are completed before downstream tasks run, maintaining valid build sequences across packages.

Can I share code and libraries between apps in a monorepo?

You can share code and libraries between apps by creating shared packages within the monorepo. Configuring per-package tasks and boundaries ensures applications correctly consume shared dependencies without breaking build pipelines.