mirror of
https://github.com/Kornstalx/5etools-mirror-2.github.io.git
synced 2025-10-28 20:45:35 -05:00
v1.198.1
This commit is contained in:
27
node/tag-jsons.js
Normal file
27
node/tag-jsons.js
Normal file
@@ -0,0 +1,27 @@
|
||||
import "../js/parser.js";
|
||||
import "../js/utils.js";
|
||||
import "../js/utils-dataloader.js";
|
||||
import "../js/render.js";
|
||||
import "../js/render-dice.js";
|
||||
import * as ut from "./util.js";
|
||||
import {setUp, loadSpells, run, teardown} from "./util-tag-jsons.js";
|
||||
|
||||
/**
|
||||
* Args:
|
||||
* file="./data/my-file.json"
|
||||
* filePrefix="./data/dir/"
|
||||
* inplace
|
||||
* bestiaryFile="./data/my-file.json"
|
||||
*/
|
||||
async function main () {
|
||||
ut.ArgParser.parse();
|
||||
setUp();
|
||||
await TagJsons.pInit({
|
||||
spells: loadSpells(),
|
||||
});
|
||||
run(ut.ArgParser.ARGS);
|
||||
teardown();
|
||||
console.log("Run complete.");
|
||||
}
|
||||
|
||||
main();
|
||||
Reference in New Issue
Block a user