mcpField
M
monorepo

monorepo

github.com/thebeardedbearsasDevelopment108114 installsUpdated today
Repository

About monorepo

A development skill for organizing monorepos with Nx, Turborepo, pnpm workspaces, and Lerna. It covers task orchestration, caching, package sharing, and practices such as affected builds and versioning.

Key features

  1. 01Nx graph and affected commands
  2. 02Turborepo task pipelines
  3. 03pnpm workspace layout
  4. 04Local, remote, and distributed caching
  5. 05Shared packages and configuration
  6. 06Versioning and CI practices

Use cases

  1. 01Choosing a monorepo toolchain
  2. 02Configuring build and test pipelines
  3. 03Sharing code across apps and packages
  4. 04Using cache and affected tasks in CI

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/thebeardedbearsas/claude-craft --skill monorepo

After installing, type/monorepoin Claude Code to confirm it loaded.

Details

From the project README

Monorepo — Nx, Turborepo, pnpm Workspaces

Monorepo moderne avec caching distribué, task orchestration.

Tools

Nx — Graph-based, plugins, enterprise
Turborepo — Simple, fast, Vercel
pnpm workspaces — Léger, fast
Lerna — Legacy (migrer)

Turborepo

{ "pipeline": {
  "build": { "dependsOn": ["^build"], "outputs": ["dist/**"] },
  "test": { "cache": true }
}}
pnpm turbo build                 # Cache
pnpm turbo test --filter=...@main

Nx

nx affected --target=build
nx graph

Code Sharing

monorepo/
├── packages/ (ui, utils, config)
├── apps/ (web, api, mobile)
import { Button } from '@monorepo/ui';

Caching

Local — Dev | Remote — Team (Vercel, Nx Cloud) | Distributed — CI

npx turbo login && npx turbo link  # Turborepo
npx nx connect-to-nx-cloud         # Nx

pnpm Workspaces

packages: ['packages/*', 'apps/*']

Best Practices

Atomic commits | Versioning (changesets) | CI (affected) | Shared configs (root)


Voir @.claude/skills/tooling/SKILL.md

Comments

Markdown supported