1
0

feat: 搭建前后端可执行程序示例

This commit is contained in:
2026-05-09 12:25:39 +08:00
commit 5b412c624d
27 changed files with 1860 additions and 0 deletions

29
package.json Normal file
View File

@@ -0,0 +1,29 @@
{
"name": "gateway-checker",
"module": "src/server/dev.ts",
"type": "module",
"private": true,
"scripts": {
"dev": "bun run scripts/dev.ts",
"dev:server": "bun --watch src/server/dev.ts",
"dev:web": "bunx --bun vite --host 127.0.0.1",
"build:web": "bunx --bun vite build",
"build": "bun run scripts/build.ts",
"start": "bun src/server/dev.ts",
"test": "bun test",
"test:smoke": "bun run scripts/smoke.ts",
"typecheck": "tsc --noEmit"
},
"devDependencies": {
"@types/bun": "^1.3.13",
"@types/react": "^19.2.14",
"@types/react-dom": "^19.2.3",
"@vitejs/plugin-react": "^6.0.1",
"typescript": "^6.0.3",
"vite": "^8.0.11"
},
"dependencies": {
"react": "^19.2.6",
"react-dom": "^19.2.6"
}
}