feat: 添加清理未使用图片资源的脚本

添加 clean-unused-images.js 脚本用于自动扫描并删除未被引用的图片文件
更新 package.json 添加 clean 命令
更新 README.md 文档说明新功能
This commit is contained in:
二叉树树
2025-09-05 03:56:31 +08:00
parent 52720591c3
commit 25b2021a2d
40 changed files with 469 additions and 46 deletions

View File

@@ -10,6 +10,7 @@
"astro": "astro",
"type-check": "tsc --noEmit --isolatedDeclarations",
"new-post": "node scripts/new-post.js",
"clean": "node scripts/clean-unused-images.js",
"format": "biome format --write ./src",
"lint": "biome check --write ./src"
},
@@ -37,6 +38,7 @@
"astro": "5.7.9",
"astro-expressive-code": "^0.41.3",
"astro-icon": "^1.1.5",
"glob": "^11.0.3",
"hastscript": "^9.0.1",
"katex": "^0.16.22",
"markdown-it": "^14.1.0",