2024-01-07 20:07:45 -06:00
|
|
|
import { config } from 'dotenv';
|
|
|
|
|
import { argv } from 'process';
|
2024-02-20 11:21:01 -06:00
|
|
|
|
|
|
|
|
config();
|
|
|
|
|
|
|
|
|
|
const allTargets = argv.includes('--all-targets');
|
|
|
|
|
const targets = argv
|
|
|
|
|
.find((argument) => argument.startsWith('--target'))
|
|
|
|
|
?.split('=')[1]
|
|
|
|
|
.split(',');
|
|
|
|
|
const production = argv.includes('--production');
|
|
|
|
|
|
2024-02-13 19:46:34 -06:00
|
|
|
import { boosterIcons } from './boosterIcons';
|
2024-01-25 12:45:13 -06:00
|
|
|
import { camouflageIcons } from './camouflageIcons';
|
2024-01-25 13:10:20 -06:00
|
|
|
import { circleFlags } from './circleFlags';
|
2024-01-25 13:51:30 -06:00
|
|
|
import { consumableProvisionIcons } from './consumableProvisionIcons';
|
2024-03-15 12:28:29 -05:00
|
|
|
import { currencies } from './currencies';
|
2024-01-25 13:10:20 -06:00
|
|
|
import { definitions } from './definitions';
|
2024-01-16 16:58:00 -06:00
|
|
|
import { equipmentIcons } from './equipmentIcons';
|
2024-01-29 17:14:51 -06:00
|
|
|
import { moduleIcons } from './moduleIcons';
|
|
|
|
|
import { scratchedFlags } from './scratchedFlags';
|
|
|
|
|
import { shellIcons } from './shellIcons';
|
2024-03-31 18:24:19 -05:00
|
|
|
import { skillIcons } from './skillIcons';
|
2024-01-29 17:14:51 -06:00
|
|
|
import { tankArmors } from './tankArmors';
|
|
|
|
|
import { tankIcons } from './tankIcons';
|
2024-01-29 15:27:21 -06:00
|
|
|
import { tankModels } from './tankModels';
|
2024-04-21 17:05:07 -05:00
|
|
|
import { videos } from './videos';
|
2024-01-07 20:07:45 -06:00
|
|
|
|
|
|
|
|
if (!targets && !allTargets) throw new Error('No target(s) specified');
|
|
|
|
|
|
2024-01-25 12:45:13 -06:00
|
|
|
const methods = [
|
2024-04-21 17:05:07 -05:00
|
|
|
definitions,
|
2024-08-12 13:12:02 -05:00
|
|
|
tankIcons,
|
2024-04-21 17:05:07 -05:00
|
|
|
videos,
|
|
|
|
|
scratchedFlags,
|
|
|
|
|
currencies,
|
|
|
|
|
skillIcons,
|
|
|
|
|
circleFlags,
|
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,
|
2024-08-12 10:32:54 -05:00
|
|
|
tankModels,
|
|
|
|
|
tankArmors,
|
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-02-18 16:17:00 -06:00
|
|
|
if (allTargets || targets?.includes(method.name)) await method(production);
|
2024-01-17 11:34:27 -06:00
|
|
|
}
|