37 lines
1.1 KiB
PowerShell
37 lines
1.1 KiB
PowerShell
param(
|
|
[Parameter(Mandatory = $false)]
|
|
[string]$Root = "E:\WireJS"
|
|
)
|
|
|
|
$ErrorActionPreference = "Stop"
|
|
$Root = (Resolve-Path $Root).Path
|
|
$ScriptDir = Split-Path -Parent $MyInvocation.MyCommand.Path
|
|
|
|
Write-Host "Stopping Bun processes..." -ForegroundColor Cyan
|
|
Get-Process bun -ErrorAction SilentlyContinue | Stop-Process -Force
|
|
|
|
Write-Host "Applying overlay reactivity fix..." -ForegroundColor Cyan
|
|
node (Join-Path $ScriptDir "patch-overlay-showcase.mjs") $Root
|
|
|
|
Push-Location $Root
|
|
try {
|
|
Write-Host "Regenerating UI component reference..." -ForegroundColor Cyan
|
|
bun run scripts/generate-ui-component-reference.mjs
|
|
|
|
Write-Host "Running focused UI tests..." -ForegroundColor Cyan
|
|
bun test packages/ui/test/overlay-reactivity.test.ts
|
|
|
|
Push-Location (Join-Path $Root "examples\component-showcase")
|
|
try {
|
|
Write-Host "Regenerating showcase..." -ForegroundColor Cyan
|
|
bun run generate
|
|
bun test test/showcase.test.ts
|
|
} finally {
|
|
Pop-Location
|
|
}
|
|
} finally {
|
|
Pop-Location
|
|
}
|
|
|
|
Write-Host "Done. Start with: cd E:\WireJS\examples\component-showcase; bun run dev" -ForegroundColor Green
|