turborepo-monorepo

Solid

Provides comprehensive Turborepo monorepo management guidance for TypeScript/JavaScript projects. Use when creating Turborepo workspaces, configuring turbo.json tasks, setting up Next.js/NestJS apps, managing test pipelines (Vitest/Jest), configuring CI/CD, implementing remote caching, or optimizing build performance in monorepos

AI & Automation 256 stars 28 forks Updated 6 days ago MIT

Install

View on GitHub

Quality Score: 91/100

Stars 20%
80
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Turborepo Monorepo ## Overview Provides guidance for Turborepo monorepo management: workspace creation, `turbo.json` task configuration, Next.js/NestJS integration, testing pipelines (Vitest/Jest), CI/CD setup, and build performance optimization. ## When to Use - Create or initialize Turborepo workspaces - Configure `turbo.json` tasks with dependencies and outputs - Set up Next.js/NestJS apps in monorepo structure - Configure Vitest/Jest test pipelines - Build CI/CD workflows (GitHub Actions, GitLab CI) - Implement remote caching with Vercel Remote Cache - Optimize build times and cache hit ratios - Debug task dependency or cache issues - Migrate from other monorepo tools to Turborepo ## Instructions ### Workspace Creation 1. **Create a new workspace:** ```bash pnpm create turbo@latest my-workspace cd my-workspace ``` 2. **Initialize in existing project:** ```bash pnpm add -D -w turbo ``` 3. **Create turbo.json in root** (minimal config): ```json { "$schema": "https://turborepo.dev/schema.json", "pipeline": { "build": { "dependsOn": ["^build"], "outputs": ["dist/**", ".next/**"] }, "lint": { "outputs": [] }, "test": { "dependsOn": ["build"], "outputs": ["coverage/**"] } } } ``` 4. **Add scripts to root package.json:** ```json { "scripts": { "build": "turbo run build", "dev": "turbo run dev", "lint": "turbo run lint", "test": "turbo run test", "clean": "turbo run clean" } } ``` 5. **Vali...

Details

Author
giuseppe-trisciuoglio
Repository
giuseppe-trisciuoglio/developer-kit
Created
7 months ago
Last Updated
6 days ago
Language
Python
License
MIT

Integrates with

Related Skills