Refactor cards into modular per-file definitions

Split the monolithic CARD_LIBRARY into one file per card under
cards/definitions/, aggregated by a barrel (definitions/index.ts).
card-library.ts now indexes ALL_CARDS by id with a duplicate-id guard.
Public API (CARD_LIBRARY, getCard, STARTER_DECK) and all card ids are
unchanged, so consumers and save data are unaffected.

Also ignore the .vite build cache.
This commit is contained in:
Nicolas Civade
2026-08-13 12:19:59 +02:00
parent 0fbe7ffb8b
commit 569c0a73e4
10 changed files with 124 additions and 75 deletions

1
.gitignore vendored
View File

@@ -10,6 +10,7 @@ lerna-debug.log*
node_modules
dist
dist-ssr
.vite
*.local
# Editor directories and files