Public/Show-SummaryViewer.ps1
|
# Copyright (c) 2026 Jeffrey Snover. All rights reserved. # Licensed under the MIT License. See LICENSE file in the project root. function Show-SummaryViewer { <# .SYNOPSIS Launch the Summary Viewer Electron app. .DESCRIPTION Runs 'npm run dev' inside the summary-viewer directory. .EXAMPLE Show-SummaryViewer SummaryViewer #> [CmdletBinding()] param() $AppDir = Join-Path $script:RepoRoot 'summary-viewer' if (-not (Test-Path $AppDir)) { Write-Fail "App directory not found: $AppDir" return } Push-Location $AppDir try { npm run dev if ($LASTEXITCODE -ne 0) { Write-Fail "npm run dev exited with code $LASTEXITCODE. Check that dependencies are installed (npm install)." } } finally { Pop-Location } } |