-
feat: merge all validation tools into unified tools/validate.mjs
Ame
Consolidate four scattered validation/audit scripts into a single
'node tools/validate.mjs' command that runs one parse pass and reports
all findings grouped by category:
1. Ref integrity (from eu4_clausewitz/bin/validate.mjs refs)
2. Province/country warnings - unowned land, missing loc keys
3. Encoding - BOM, astral chars, brace balance
4. Overlay ambiguities - suppress SOF vanilla-layer issue
5. Duplicate definitions (from bin/audit.mjs) - common/ cross-file
and in-file dupes, event ID dupes, scripted_effects/triggers dupes
6. Scope references (NEW) - province/area/region/trade-node refs in
events/decisions/missions verified against definition.csv, area.txt,
region.txt, and common/tradenodes/
7. Manifest consistency (from build_history_english.mjs check)
8. Localisation source vs built (from localisation.ps1 check) -
reimplemented in JS, verifies source keys map to built output
9. English overlay (from build_variants.mjs validateEnglishOverlay)
Old tools removed:
- too…
-
perf(localisation): add incremental parallel build
Ame