From 0e6bbbf8b708b4b622a6f06834f2d7c3b89f0937 Mon Sep 17 00:00:00 2001 From: Danijel Martinek Date: Wed, 13 May 2026 16:58:00 +0200 Subject: [PATCH] refactor(docs): consolidate scaffolding/ into guides/ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The docs/scaffolding/ directory held two how-to guides (core-package + core-ui-component generator references). Both are operationally identical in shape to docs/guides/scaffolding-a-feature.md — they just live in a separate top-level docs directory. Consolidating removes one directory + makes the three scaffolding guides discoverable as siblings. Moves (via git mv to preserve history): docs/scaffolding/core-package-generator.md -> docs/guides/scaffolding-core-package.md docs/scaffolding/core-ui-component-generator.md -> docs/guides/scaffolding-core-ui-component.md Empty docs/scaffolding/ directory removed. AGENTS.md (only consumer of the old paths) updated to point at the new locations. Co-Authored-By: Claude Opus 4.7 (1M context) --- AGENTS.md | 4 ++-- .../scaffolding-core-package.md} | 0 .../scaffolding-core-ui-component.md} | 12 ++++++------ 3 files changed, 8 insertions(+), 8 deletions(-) rename docs/{scaffolding/core-package-generator.md => guides/scaffolding-core-package.md} (100%) rename docs/{scaffolding/core-ui-component-generator.md => guides/scaffolding-core-ui-component.md} (77%) diff --git a/AGENTS.md b/AGENTS.md index 0c3f1e5..1a81bfc 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -113,8 +113,8 @@ pnpm typecheck # Type-check all packages pnpm lint # Lint all packages (ESLint boundaries enforced) pnpm turbo boundaries # Validate workspace dependency graph (Turbo boundaries) pnpm turbo gen feature # Scaffold a new feature package (see docs/guides/scaffolding-a-feature.md) -pnpm turbo gen core-package # Scaffold an optional core package back (realtime, events, trpc, ui — see docs/scaffolding/core-package-generator.md) -pnpm turbo gen core-ui-component # Scaffold a core-ui atomic-design component (atom/molecule/organism — see docs/scaffolding/core-ui-component-generator.md) +pnpm turbo gen core-package # Scaffold an optional core package back (realtime, events, trpc, ui — see docs/guides/scaffolding-core-package.md) +pnpm turbo gen core-ui-component # Scaffold a core-ui atomic-design component (atom/molecule/organism — see docs/guides/scaffolding-core-ui-component.md) pnpm test # Run all unit + integration tests (Vitest) pnpm test:e2e # Run e2e tests (Playwright across both apps) pnpm build # Build all packages (Turborepo) diff --git a/docs/scaffolding/core-package-generator.md b/docs/guides/scaffolding-core-package.md similarity index 100% rename from docs/scaffolding/core-package-generator.md rename to docs/guides/scaffolding-core-package.md diff --git a/docs/scaffolding/core-ui-component-generator.md b/docs/guides/scaffolding-core-ui-component.md similarity index 77% rename from docs/scaffolding/core-ui-component-generator.md rename to docs/guides/scaffolding-core-ui-component.md index 74e209a..e4c0c8a 100644 --- a/docs/scaffolding/core-ui-component-generator.md +++ b/docs/guides/scaffolding-core-ui-component.md @@ -18,12 +18,12 @@ pnpm turbo gen core-ui-component The generator emits 4 files into `packages/core-ui/src/s//`: -| File | Purpose | -|---|---| -| `.tsx` | Component implementation (forwardRef + cn + className passthrough) | -| `.stories.tsx` | Storybook stories (Meta + StoryObj + one Default story; tier-prefixed title) | -| `.test.tsx` | Vitest + Testing Library smoke tests (renders, className passthrough, ref forwarding) | -| `index.ts` | Barrel that re-exports the component + Props type | +| File | Purpose | +| -------------------------- | ------------------------------------------------------------------------------------- | +| `.tsx` | Component implementation (forwardRef + cn + className passthrough) | +| `.stories.tsx` | Storybook stories (Meta + StoryObj + one Default story; tier-prefixed title) | +| `.test.tsx` | Vitest + Testing Library smoke tests (renders, className passthrough, ref forwarding) | +| `index.ts` | Barrel that re-exports the component + Props type | The new export is also spliced into `packages/core-ui/src/s/index.ts` immediately after the `// s>` anchor, so the component is reachable from the tier barrel (and transitively from the root `@repo/core-ui` export) without any manual wiring.