foundry-ironsworn
foundry-ironsworn copied to clipboard
Unify import from data*import.js scripts into data*.ts
There are a few steps involved here
- Create new functions to make an unmodified local cache of the JSON source files.
- Migrate markdown conversion into
importFromData*()
methods. (introducing a new markdown parser dependency) - Update i18n files in
importFromData*()
methods.
importFromData*()
may make more sense as the name of the methods from 1., in which case the methods from 2. should be renamed into something like rebuildData*Compendia()
Bonus cleanup: it'd be great if the methods which construct compendia could handle unlocking existing ones, creating absent ones, and relocking them after update.
Realizing there's more to do here, so I'm reopening this.