mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 10:47:04 +02:00
52 lines
1.4 KiB
TypeScript
52 lines
1.4 KiB
TypeScript
import { config } from 'dotenv';
|
|
import { argv } from 'process';
|
|
|
|
config();
|
|
|
|
const allTargets = argv.includes('--all-targets');
|
|
const targets = argv
|
|
.find((argument) => argument.startsWith('--target'))
|
|
?.split('=')[1]
|
|
.split(',');
|
|
const production = argv.includes('--production');
|
|
|
|
import { boosterIcons } from './boosterIcons';
|
|
import { camouflageIcons } from './camouflageIcons';
|
|
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 { moduleIcons } from './moduleIcons';
|
|
import { shellIcons } from './shellIcons';
|
|
import { skillIcons } from './skillIcons';
|
|
import { tankArmors } from './tankArmors';
|
|
import { tankIcons } from './tankIcons';
|
|
import { tankModels } from './tankModels';
|
|
import { videos } from './videos';
|
|
|
|
if (!targets && !allTargets) throw new Error('No target(s) specified');
|
|
|
|
const methods = [
|
|
gameModeBanners,
|
|
definitions,
|
|
tankIcons,
|
|
videos,
|
|
currencies,
|
|
skillIcons,
|
|
flags,
|
|
shellIcons,
|
|
moduleIcons,
|
|
equipmentIcons,
|
|
consumableProvisionIcons,
|
|
camouflageIcons,
|
|
boosterIcons,
|
|
tankModels,
|
|
tankArmors,
|
|
];
|
|
|
|
for (const method of methods) {
|
|
if (allTargets || targets?.includes(method.name)) await method(production);
|
|
}
|