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

View File

@@ -0,0 +1,16 @@
{
"name": "minify",
"module": "index.ts",
"type": "module",
"private": true,
"devDependencies": {
"@types/bun": "latest"
},
"peerDependencies": {
"typescript": "^5"
},
"dependencies": {
"@swc/core": "^1.15.30",
"@swc/html": "^1.15.30"
}
}