Add PowerShell dev/test scripts and Windows-first README commands

This commit is contained in:
kate522 committed 2026-10-18 17:27:30 +08:00
1 parent f8acf31ebc
commit a141f39dbd
3 files changed
+33 -4

No files matched your search

+7 -4
View File
@@ -12,20 +12,23 @@
```powershell
# 1. 构建网关二进制到 bin/
make build
powershell -File scripts/build-gateway.ps1
# 或:go build -o bin/gateway.exe ./cmd/gateway
# 2. 安装前端依赖
npm install
# 3. 启动桌面端(自动构建网关并启动 Tauri dev)
make dev
powershell -File scripts/dev.ps1
# 或直接:npm run tauri dev
```
## 测试
```powershell
make test # Go 单元测试与集成测试
npm test # 前端 vitest
powershell -File scripts/test.ps1 # Go + 前端全部测试
go test ./... # 仅 Go
npm test # 仅前端
npm run typecheck
```