M16 fase 0 — Scrum4Me adopts scrum4me-shared submodule #32

Merged
janpeter merged 6 commits from feat/M16-platform-split-shared-bootstrap into main 2026-05-26 15:10:08 +02:00
Owner

Summary

  • Add vendor/scrum4me-shared Git-submodule (pinned to SHA 4907643)
  • @shared/* path alias added to tsconfig.json + vitest.config.ts
  • lib/job-config.ts, lib/job-status.ts, lib/task-status.ts become thin re-export shims
  • scripts/gen-schema.sh wrapper + predev/prebuild hooks regenerate prisma/schema.prisma from canonical (strips url=/directUrl= for Prisma 7 compatibility)
  • CLAUDE.md: bewuste duplicaten paragraph replaced with Shared lib via submodule note

Relation to other PRs

  • PR #31 (feat/platform-split-design) merges the design spec — both PRs can merge in any order; the CLAUDE.md link resolves once #31 lands on main.

Test plan

  • npm run verify green (130 test files, 1175 tests, lint + typecheck pass)
  • npx prisma generate succeeds with regenerated schema
  • Existing tests for job-config, job-status, task-status all pass via shims
  • TypeScript: Prisma enum types structurally compatible with shared string-union types — no call-site changes needed

Reference

docs/plans/M16-platform-split-fase-0-shared.md tasks 12–17

## Summary - Add `vendor/scrum4me-shared` Git-submodule (pinned to SHA `4907643`) - `@shared/*` path alias added to `tsconfig.json` + `vitest.config.ts` - `lib/job-config.ts`, `lib/job-status.ts`, `lib/task-status.ts` become thin re-export shims - `scripts/gen-schema.sh` wrapper + `predev`/`prebuild` hooks regenerate `prisma/schema.prisma` from canonical (strips `url=`/`directUrl=` for Prisma 7 compatibility) - CLAUDE.md: `bewuste duplicaten` paragraph replaced with `Shared lib via submodule` note ## Relation to other PRs - PR #31 (feat/platform-split-design) merges the design spec — both PRs can merge in any order; the CLAUDE.md link resolves once #31 lands on main. ## Test plan - [x] `npm run verify` green (130 test files, 1175 tests, lint + typecheck pass) - [x] `npx prisma generate` succeeds with regenerated schema - [x] Existing tests for job-config, job-status, task-status all pass via shims - [x] TypeScript: Prisma enum types structurally compatible with shared string-union types — no call-site changes needed ## Reference `docs/plans/M16-platform-split-fase-0-shared.md` tasks 12–17
Pins vendor/scrum4me-shared at SHA 4907643. Adds @shared/* → ./vendor/scrum4me-shared/lib/* path alias in tsconfig.json.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Also adds @shared alias to vitest.config.ts so tests resolve the submodule path.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
lib/job-status.ts and lib/task-status.ts are now thin re-export shims.
Prisma-enum types remain structurally compatible with the shared string-union types — no call-site changes needed.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Adds scripts/gen-schema.sh wrapper that calls gen-consumer-schema.sh from
the submodule and strips url=/directUrl= lines (Prisma 7 uses prisma.config.ts
for connection URLs, not schema.prisma). predev and prebuild now regenerate
prisma/schema.prisma before each dev/build cycle.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
docs(claude-md): replace 'bewuste duplicaten' with shared-submodule note
Some checks failed
CI / Lint, Typecheck, Test & Build (pull_request) Failing after 1m26s
CI / Deploy Manual (workflow_dispatch) (pull_request) Has been skipped
CI / Detect deploy-relevant changes (pull_request) Has been skipped
CI / Deploy Preview (PR) (pull_request) Has been skipped
CI / Deploy Production (main) (pull_request) Has been skipped
31cebeeff2
Replaces the 'Bewuste duplicaten' paragraph with a 'Shared lib via submodule'
note describing the new workflow: logic changes go via scrum4me-shared PR first,
then a submodule bump + npm run prebuild in this repo.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
chore(package): remove duplicate prisma generate from build script
Some checks failed
CI / Lint, Typecheck, Test & Build (pull_request) Failing after 1m24s
CI / Deploy Manual (workflow_dispatch) (pull_request) Has been skipped
CI / Detect deploy-relevant changes (pull_request) Has been skipped
CI / Deploy Preview (PR) (pull_request) Has been skipped
CI / Deploy Production (main) (pull_request) Has been skipped
7351fd07c7
prebuild already runs prisma generate via gen-schema.sh chain; npm lifecycle
fires prebuild automatically before build, so the leading prisma generate
in build was redundant. Saves ~2-3s per CI/deploy.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
janpeter/Scrum4Me!32
No description provided.