补上 README 和启动脚本

之前跑起来要记一串命令和路径,现在 bun run start 一条就够。
另外补了 dev:kernel 和 dev:reset,本地那套「写坏配置看它怎么救」的流程不用再手敲二进制路径。
This commit is contained in:
im0o
2026-08-10 04:43:08 +08:00
parent 7a764f5fe1
commit c6cb91db3f
2 changed files with 64 additions and 0 deletions
+4
View File
@@ -5,10 +5,14 @@
"type": "module",
"description": "mihomo 配置的网页界面:把每一路入站接到它自己的出站上",
"scripts": {
"start": "vite build && bun run server/index.ts",
"dev": "bun run --hot server/index.ts",
"dev:web": "vite",
"dev:kernel": "../binary/mihomo-windows-amd64-v3-go125.exe -d dev/home -f dev/home/config.yaml",
"dev:reset": "cp dev/config.yaml dev/home/config.yaml",
"build": "vite build",
"test": "bun test",
"smoke": "bun run scripts/api-smoke.ts",
"typecheck": "vue-tsc --noEmit"
},
"dependencies": {