build(turbo): normalize workspace task graph #33

Merged
vince merged 2 commits from codex/turbo-idiomatic-workspace into main 2026-06-20 06:19:39 +02:00
Owner

Summary

Normalize the workspace scripts and Turbo task graph for the first idiomatic Turborepo cleanup slice.

Why

The repo was Turbo-compatible, but root scripts used shorthand invocation, QA was hidden behind a package-local nested script, e2e rebuilt Storybook inside Playwright, and cache hashes did not account for root config/env inputs. This makes later package/file-tree cleanup harder to review safely.

Changes

  • Switch root scripts to explicit turbo run commands.
  • Make test:qa a root Turbo graph across check, unit, build, UI Storybook, and web e2e tasks.
  • Remove the web package test:qa shell pipeline so package scripts remain leaf tasks.
  • Add Turbo global dependencies and task env declarations for cache correctness.
  • Make e2e depend on the UI Storybook build and serve the built artifact without a nested build.
  • Extend workspace-boundary tests for the task graph invariants.

Testing

  • bun run --cwd apps/web test:unit src/lib/workspace-boundary.test.ts
  • bun run check
  • bun run test:qa
  • bun run db:check

Notes

This is the first PR-sized slice toward the full Turborepo-idiomatic cleanup. The next slices should address package-boundary consistency, file-tree organization, and Docker turbo prune deployment shape.

## Summary Normalize the workspace scripts and Turbo task graph for the first idiomatic Turborepo cleanup slice. ## Why The repo was Turbo-compatible, but root scripts used shorthand invocation, QA was hidden behind a package-local nested script, e2e rebuilt Storybook inside Playwright, and cache hashes did not account for root config/env inputs. This makes later package/file-tree cleanup harder to review safely. ## Changes - Switch root scripts to explicit `turbo run` commands. - Make `test:qa` a root Turbo graph across check, unit, build, UI Storybook, and web e2e tasks. - Remove the web package `test:qa` shell pipeline so package scripts remain leaf tasks. - Add Turbo global dependencies and task env declarations for cache correctness. - Make e2e depend on the UI Storybook build and serve the built artifact without a nested build. - Extend workspace-boundary tests for the task graph invariants. ## Testing - `bun run --cwd apps/web test:unit src/lib/workspace-boundary.test.ts` - `bun run check` - `bun run test:qa` - `bun run db:check` ## Notes This is the first PR-sized slice toward the full Turborepo-idiomatic cleanup. The next slices should address package-boundary consistency, file-tree organization, and Docker `turbo prune` deployment shape.
vince added 1 commit 2026-06-20 06:11:42 +02:00
vince added 1 commit 2026-06-20 06:16:42 +02:00
vince merged commit 22f50d64f9 into main 2026-06-20 06:19:39 +02:00
Sign in to join this conversation.
No description provided.