Drop PowerShell dev/test helper scripts in favor of make

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

No files matched your search

+4 -7
View File
@@ -12,23 +12,20 @@
```powershell
# 1. 构建网关二进制到 bin/
powershell -File scripts/build-gateway.ps1
# 或:go build -o bin/gateway.exe ./cmd/gateway
make build
# 2. 安装前端依赖
npm install
# 3. 启动桌面端(自动构建网关并启动 Tauri dev)
powershell -File scripts/dev.ps1
# 或直接:npm run tauri dev
make dev
```
## 测试
```powershell
powershell -File scripts/test.ps1 # Go + 前端全部测试
go test ./... # 仅 Go
npm test # 仅前端
make test # Go 单元测试与集成测试
npm test # 前端 vitest
npm run typecheck
```
-13
View File
@@ -1,13 +0,0 @@
# Builds the gateway binary (when missing) and starts the Tauri dev app.
param([switch]$NoBuild)
$ErrorActionPreference = "Stop"
$repoRoot = Split-Path -Parent $PSScriptRoot
Set-Location $repoRoot
$gateway = Join-Path $repoRoot "bin\gateway.exe"
if (-not $NoBuild -and -not (Test-Path $gateway)) {
& (Join-Path $PSScriptRoot "build-gateway.ps1")
}
npm run tauri dev
-13
View File
@@ -1,13 +0,0 @@
# Runs the full test suite: Go tests, then frontend vitest.
param([switch]$SkipFrontend)
$ErrorActionPreference = "Stop"
$repoRoot = Split-Path -Parent $PSScriptRoot
Set-Location $repoRoot
go test ./...
if ($LASTEXITCODE -ne 0) { exit 1 }
if (-not $SkipFrontend) {
npm test
}