2025-10-13 22:26:11 -05:00
|
|
|
import { config } from "dotenv";
|
|
|
|
|
import { argv } from "process";
|
|
|
|
|
import { boosterIcons } from "./boosterIcons";
|
|
|
|
|
import { camouflageIcons } from "./camouflageIcons";
|
2025-11-26 12:58:19 -06:00
|
|
|
import { vfs } from "./constants";
|
2025-10-13 22:26:11 -05:00
|
|
|
import { consumableProvisionIcons } from "./consumableProvisionIcons";
|
|
|
|
|
import { currencies } from "./currencies";
|
|
|
|
|
import { definitions } from "./definitions";
|
|
|
|
|
import { equipmentIcons } from "./equipmentIcons";
|
|
|
|
|
import { flags } from "./flags";
|
|
|
|
|
import { gameModeBanners } from "./gameModeBanners";
|
|
|
|
|
import { glossary } from "./glossary";
|
|
|
|
|
import { migration } from "./migration";
|
|
|
|
|
import { moduleIcons } from "./moduleIcons";
|
2025-10-23 21:22:21 -05:00
|
|
|
import { popularTanks } from "./popularTanks";
|
2025-10-13 22:26:11 -05:00
|
|
|
import { shellIcons } from "./shellIcons";
|
|
|
|
|
import { skillIcons } from "./skillIcons";
|
|
|
|
|
import { tankArmors } from "./tankArmors";
|
|
|
|
|
import { tankIcons } from "./tankIcons";
|
|
|
|
|
import { tankModels } from "./tankModels";
|
2024-01-07 20:07:45 -06:00
|
|
|
|
2025-11-26 12:58:19 -06:00
|
|
|
config();
|
|
|
|
|
|
|
|
|
|
const allTargets = argv.includes("--all-targets");
|
|
|
|
|
const targets = argv
|
|
|
|
|
.find((argument) => argument.startsWith("--target"))
|
|
|
|
|
?.split("=")[1]
|
|
|
|
|
.split(",");
|
|
|
|
|
|
2025-10-13 22:26:11 -05:00
|
|
|
if (!targets && !allTargets) throw new Error("No target(s) specified");
|
2024-01-07 20:07:45 -06:00
|
|
|
|
2024-01-25 12:45:13 -06:00
|
|
|
const methods = [
|
2024-11-29 11:52:42 -06:00
|
|
|
definitions,
|
2025-10-23 21:22:21 -05:00
|
|
|
tankIcons,
|
2024-09-02 10:07:48 -05:00
|
|
|
tankModels,
|
|
|
|
|
tankArmors,
|
2024-08-16 12:52:29 -05:00
|
|
|
gameModeBanners,
|
2024-04-21 17:05:07 -05:00
|
|
|
currencies,
|
|
|
|
|
skillIcons,
|
2024-08-16 21:08:50 -05:00
|
|
|
flags,
|
2024-01-29 17:14:51 -06:00
|
|
|
shellIcons,
|
|
|
|
|
moduleIcons,
|
2024-01-25 12:45:13 -06:00
|
|
|
equipmentIcons,
|
2024-01-25 13:51:30 -06:00
|
|
|
consumableProvisionIcons,
|
2024-01-25 12:45:13 -06:00
|
|
|
camouflageIcons,
|
2024-02-13 19:46:34 -06:00
|
|
|
boosterIcons,
|
2025-04-19 00:47:28 -05:00
|
|
|
glossary,
|
2025-10-23 21:22:21 -05:00
|
|
|
migration,
|
|
|
|
|
popularTanks,
|
2024-01-25 12:45:13 -06:00
|
|
|
];
|
2024-01-07 20:07:45 -06:00
|
|
|
|
2024-01-25 12:45:13 -06:00
|
|
|
for (const method of methods) {
|
2024-08-28 10:02:28 -05:00
|
|
|
if (allTargets || targets?.includes(method.name)) {
|
|
|
|
|
try {
|
|
|
|
|
await method();
|
|
|
|
|
} catch (error) {
|
2024-10-05 23:20:04 -05:00
|
|
|
console.warn(`Failed method ${method.name}; skipping...`);
|
|
|
|
|
console.error(error);
|
2024-08-28 10:02:28 -05:00
|
|
|
}
|
|
|
|
|
}
|
2024-01-17 11:34:27 -06:00
|
|
|
}
|
2025-11-26 12:58:19 -06:00
|
|
|
|
|
|
|
|
vfs.dispose();
|
|
|
|
|
process.exit(0);
|