Get rid of dotenv & tsx deps

This commit is contained in:
Kalle
2026-06-12 21:18:09 +03:00
parent 1859815366
commit 51808edcc3
48 changed files with 63 additions and 391 deletions

View File

@@ -7,19 +7,19 @@ Note: These are mostly useful if you are running the site in production as an ad
## Add new badge to the database
```bash
pnpm exec tsx scripts/add-badge.ts fire_green "Octofin Eliteboard"
pnpm exec vite-node scripts/add-badge.ts fire_green "Octofin Eliteboard"
```
## Rename display name of a badge
```bash
pnpm exec tsx scripts/rename-badge.ts 10 "New 4v4 Sundaes"
pnpm exec vite-node scripts/rename-badge.ts 10 "New 4v4 Sundaes"
```
## Add many badge owners
```bash
pnpm exec tsx scripts/add-badge-winners.ts 10 "750705955909664791,79237403620945920"
pnpm exec vite-node scripts/add-badge-winners.ts 10 "750705955909664791,79237403620945920"
```
## Converting gifs (badges) to thumbnail (.png)
@@ -48,19 +48,19 @@ Note: it only works with Node 16.
1. Update `CURRENT_PATCH` constants
1. Update `PATCHES` constant with the late patch + remove the oldest
1. Update the stage list in `stage-ids.ts` and `create-misc-json.ts`. Add images from Lean's repository and avify them.
1. `pnpm exec tsx scripts/create-misc-json.ts`
1. `pnpm exec tsx scripts/create-gear-json.ts`
1. `pnpm exec tsx scripts/create-analyzer-json.ts`
1. `pnpm exec vite-node scripts/create-misc-json.ts`
1. `pnpm exec vite-node scripts/create-gear-json.ts`
1. `pnpm exec vite-node scripts/create-analyzer-json.ts`
8a. Double check that no hard-coded special damages changed
1. `pnpm exec tsx scripts/create-object-dmg-json.ts`
1. `pnpm exec vite-node scripts/create-object-dmg-json.ts`
1. Fill new weapon IDs by category to `weapon-ids.ts` (easy to take from the diff of English weapons.json)
1. Get gear IDs for each slot from /output folder and update `gear-ids.ts`.
1. Replace `object-dmg.json` with the `object-dmg.json` in /output folder
1. Replace `weapon-params.ts` with the `params.json` in /output folder
1. Delete all images inside `main-weapons`, `main-weapons-outlined`, `main-weapons-outlined-2` and `gear` folders.
1. Replace with images from Lean's repository.
1. Run the `pnpm exec tsx scripts/replace-img-names.ts` command
1. Run the `pnpm exec tsx scripts/replace-weapon-names.ts` command
1. Run the `pnpm exec vite-node scripts/replace-img-names.ts` command
1. Run the `pnpm exec vite-node scripts/replace-weapon-names.ts` command
1. Run the .avif generating command in each image folder.
2. Update manually any languages that use English `gear.json` and `weapons.json` files