スキル一覧に戻る
lovedragonball

monorepo-management

by lovedragonball

32🍴 4📅 2026年1月17日
GitHubで見るManusで実行

SKILL.md


name: monorepo-management description: Nx, Turborepo, and Lerna workflows for monorepo management. Use for large-scale projects with multiple packages.

📦 Monorepo Management Skill

Tools Comparison

FeatureNxTurborepoLerna
Caching✅ Local + Remote✅ Local + Remote
Affected✅ Built-in⚠️ Manual⚠️ Limited
Generators✅ Rich❌ None❌ None
LearningSteepEasyEasy

Turborepo Setup

npx create-turbo@latest

turbo.json

{
  "$schema": "https://turbo.build/schema.json",
  "pipeline": {
    "build": {
      "dependsOn": ["^build"],
      "outputs": ["dist/**"]
    },
    "lint": {},
    "test": {
      "dependsOn": ["build"]
    }
  }
}

Commands

turbo run build           # Build all packages
turbo run build --filter=web  # Build specific package
turbo run lint test       # Run multiple tasks

Nx Setup

npx create-nx-workspace@latest myorg

nx.json

{
  "targetDefaults": {
    "build": {
      "dependsOn": ["^build"],
      "cache": true
    }
  }
}

Commands

nx build web              # Build specific project
nx affected:build         # Build affected only
nx graph                  # Visualize dependencies
nx generate @nx/react:component button --project=ui

Package Structure

monorepo/
├── apps/
│   ├── web/               # Next.js app
│   ├── admin/             # Admin dashboard
│   └── api/               # Backend API
├── packages/
│   ├── ui/                # Shared components
│   ├── utils/             # Shared utilities
│   └── config/            # Shared configs
├── turbo.json
└── package.json

Workspace Setup

pnpm-workspace.yaml

packages:
  - 'apps/*'
  - 'packages/*'

Internal Packages

// packages/ui/package.json
{
  "name": "@myorg/ui",
  "main": "./src/index.ts"
}

// apps/web/package.json
{
  "dependencies": {
    "@myorg/ui": "workspace:*"
  }
}

Checklist

  • Choose monorepo tool
  • Set up workspace config
  • Configure build pipeline
  • Enable caching (local/remote)
  • Set up affected builds
  • Configure CI/CD integration

スコア

総合スコア

50/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です