init
This commit is contained in:
8
scripts/serve.ps1
Normal file
8
scripts/serve.ps1
Normal file
@@ -0,0 +1,8 @@
|
||||
$python = Get-Command python -ErrorAction SilentlyContinue
|
||||
if (-not $python) {
|
||||
Write-Host "Python not found. Open index.html directly in a browser." -ForegroundColor Yellow
|
||||
exit 1
|
||||
}
|
||||
|
||||
Write-Host "Starting local server at http://localhost:8000" -ForegroundColor Green
|
||||
python -m http.server 8000
|
||||
15
scripts/smoke.ps1
Normal file
15
scripts/smoke.ps1
Normal file
@@ -0,0 +1,15 @@
|
||||
$files = @("index.html", "styles.css", "app.js", "README.md")
|
||||
$missing = @()
|
||||
|
||||
foreach ($file in $files) {
|
||||
if (-not (Test-Path $file)) {
|
||||
$missing += $file
|
||||
}
|
||||
}
|
||||
|
||||
if ($missing.Count -gt 0) {
|
||||
Write-Host "Missing files: $($missing -join ', ')" -ForegroundColor Red
|
||||
exit 1
|
||||
}
|
||||
|
||||
Write-Host "Smoke check passed." -ForegroundColor Green
|
||||
Reference in New Issue
Block a user