chore(minify): add Bun script to minify internal and goutils HTML/JS

Add `scripts/minify` with glob discovery, @swc/core for JavaScript, and
@swc/html for HTML, writing sibling `*.min.html` / `*.min.js` and
skipping `internal/go-proxmox` and files whose basename already contains
`.min.`. Ship Bun lock, tsconfig, README, and `.gitignore` for the tool.
This commit is contained in:
yusing
2026-04-22 11:50:57 +08:00
parent 05c073e492
commit 3cb32dafdd
6 changed files with 260 additions and 0 deletions

15
scripts/minify/README.md Normal file
View File

@@ -0,0 +1,15 @@
# minify
To install dependencies:
```bash
bun install
```
To run:
```bash
bun run index.ts
```
This project was created using `bun init` in bun v1.3.12. [Bun](https://bun.com) is a fast all-in-one JavaScript runtime.