chore(repo): adopt npm workspaces (#28) #42

Merged
Reliodas merged 1 commit from chore/28-npm-workspaces into develop 2026-06-24 14:54:30 +00:00
Owner

Closes #28.

Centralise installations et scripts entre shared, server et client.

Changements

  • package.json racine avec workspaces et scripts centralisés (typecheck, test, test:coverage, build, test:e2e, validate:questions, check:assets, smoke). Les scripts par paquet et cd <pkg> && npm ... continuent de fonctionner.
  • Un seul package-lock.json racine remplace les trois lockfiles par paquet ; un seul npm ci installe tous les espaces de travail.
  • Dockerfile, CI (un npm ci racine par étape) et dev.sh adaptés à la structure workspace ; doc mise à jour (README, CONTRIBUTING, Implémentation.md).

Vérification (checkout propre)

  • rm -rf node_modules && npm ci puis : typecheck (OK), couverture serveur (93 %) et client (au-dessus des planchers), build, smoke (health/static/fallback/websocket) — tous verts. Le câblage e2e (Playwright) est validé en CI.

Critères d'acceptation

  • Configuration npm workspaces à la racine
  • Scripts typecheck/test/coverage/build centralisés sans casser les commandes existantes
  • Lockfiles cohérents (un seul lock racine), non édités à la main
  • CI et documentation adaptées
  • Checkout propre vérifié (npm ci + suites shared/server/client/e2e)

🤖 Generated with Claude Code

Closes #28. Centralise installations et scripts entre `shared`, `server` et `client`. ## Changements - `package.json` racine avec `workspaces` et scripts centralisés (typecheck, test, test:coverage, build, test:e2e, validate:questions, check:assets, smoke). Les scripts par paquet et `cd <pkg> && npm ...` continuent de fonctionner. - **Un seul `package-lock.json` racine** remplace les trois lockfiles par paquet ; un seul `npm ci` installe tous les espaces de travail. - Dockerfile, CI (un `npm ci` racine par étape) et `dev.sh` adaptés à la structure workspace ; doc mise à jour (README, CONTRIBUTING, Implémentation.md). ## Vérification (checkout propre) - `rm -rf node_modules && npm ci` puis : typecheck (OK), couverture serveur (93 %) et client (au-dessus des planchers), build, smoke (health/static/fallback/websocket) — tous verts. Le câblage e2e (Playwright) est validé en CI. ## Critères d'acceptation - [x] Configuration npm workspaces à la racine - [x] Scripts typecheck/test/coverage/build centralisés sans casser les commandes existantes - [x] Lockfiles cohérents (un seul lock racine), non édités à la main - [x] CI et documentation adaptées - [x] Checkout propre vérifié (`npm ci` + suites shared/server/client/e2e) 🤖 Generated with [Claude Code](https://claude.com/claude-code)
chore(repo): adopt npm workspaces
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/pr/woodpecker Pipeline was successful
ci/woodpecker/pull_request_closed/woodpecker Pipeline was successful
1f12ec6d6a
Centralise installs and scripts across shared, server and client (#28).

- Add a root package.json with `workspaces` and centralised scripts (typecheck,
  test, test:coverage, build, test:e2e, validate:questions, check:assets, smoke);
  per-package scripts and `cd <pkg> && npm ...` keep working.
- Replace the three per-package lockfiles with a single root package-lock.json
  (one `npm ci` installs every workspace).
- Update the Dockerfile, CI (one root `npm ci` per step) and dev.sh to the
  workspace layout; document it in README, CONTRIBUTING and Implémentation.md.

Verified from a clean checkout: `npm ci` then typecheck, server and client
coverage (floors hold), build, smoke and e2e wiring all pass.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Reliodas merged commit 728baa20a6 into develop 2026-06-24 14:54:30 +00:00
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: jeux/le-grand-concours#42
No description provided.