Skip to content

Monorepo Structure

apps/docs/src/content/docs/architecture/monorepo Click to copy
Copied! apps/docs/src/content/docs/architecture/monorepo

WC-2026 uses Turborepo with npm workspaces for monorepo management. This provides intelligent build caching, dependency-aware task execution, and shared configuration.

FeatureBenefit
Remote cachingCI builds reuse cached outputs across machines
Task dependenciesbuild waits for upstream ^build to complete
FilteringRun commands for specific packages: --filter=docs
npm nativeNo additional package manager complexity
wc-2026 (root)
├── apps/docs # Documentation site
├── apps/storybook # Component playground
└── packages/wc-library # Component source code
{
"tasks": {
"build": {
"dependsOn": ["^build"],
"outputs": ["dist/**", ".astro/**"]
},
"dev": {
"cache": false,
"persistent": true
},
"type-check": {
"dependsOn": ["^build"]
}
}
}

See the Pre-Planning Architecture document for the full monorepo design specification.