diff --git a/scripts/open-readest-latest.ps1 b/scripts/open-readest-latest.ps1 index 3ccfce58..c1be85f3 100644 --- a/scripts/open-readest-latest.ps1 +++ b/scripts/open-readest-latest.ps1 @@ -1,6 +1,7 @@ param( - [string]$Remote = "akai-tools", - [string]$Branch = "codex/desktop-review-editor-blocks", + [string]$Remote = "origin", + [string]$Branch = "codex/full-book-translation", + [switch]$Web, [switch]$SkipPull, [switch]$CheckOnly, [switch]$KeepRunning @@ -64,6 +65,12 @@ function Stop-OldReadestDev { } } +function Start-ReadestWeb { + Write-Step "Starting Readest web development server" + Write-Host "Refresh http://localhost:3000 to see the latest committed changes." + Invoke-Checked "pnpm" @("--filter", "@readest/readest-app", "dev-web") +} + function Assert-CleanWorktree { $status = (& git -C $RepoRoot status --porcelain) if ($status) { @@ -148,9 +155,13 @@ try { Stop-OldReadestDev - Write-Step "Starting Readest desktop with the latest code" - Write-Host "Close the Readest window or press Ctrl+C here to stop the dev server." - Invoke-Checked "pnpm" @("--filter", "@readest/readest-app", "tauri", "dev") + if ($Web) { + Start-ReadestWeb + } else { + Write-Step "Starting Readest desktop with the latest code" + Write-Host "Close the Readest window or press Ctrl+C here to stop the dev server." + Invoke-Checked "pnpm" @("--filter", "@readest/readest-app", "tauri", "dev") + } } catch { Write-Host "" Write-Host "Readest launcher failed:" -ForegroundColor Red