feat: architecture DDD hexagonale + tooling Vite/TypeScript

Migration complète du monolithe vers une architecture en couches :
- Domain : entités, value objects, services purs, ports
- Application : CQRS avec CommandBus/QueryBus, 15+ commandes, 9 requêtes
- Tooling : Vite + TypeScript strict + Vitest + path aliases

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-06 05:42:53 +02:00
parent 0afc53fc1a
commit c640fbd416
57 changed files with 4419 additions and 3155 deletions

View File

@@ -0,0 +1,9 @@
import type { AppState } from '@domain/ports/StateRepository';
export interface GetInventaireQuery { type: 'get-inventaire'; }
export function createGetInventaireHandler(state: AppState) {
return (_query: GetInventaireQuery): Record<string, { m: number; f: number }> => {
return state.inventaire;
};
}