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

+13
View File
@@ -0,0 +1,13 @@
# 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
@@ -0,0 +1,13 @@
# 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
}