Streamline management of API collections #1

Merged
administrator merged 43 commits from feature/script-autogenerate-http into main 2026-08-19 14:54:42 +02:00
Showing only changes of commit 5f2b014a11 - Show all commits
+3 -1
View File
@@ -273,12 +273,14 @@ function Main {
Ensure-Dir $outputRoot Ensure-Dir $outputRoot
# Copy JS # Copy JS
$jsCount = 0
Get-ChildItem $sourceDir -Recurse -File -Include *.js | Get-ChildItem $sourceDir -Recurse -File -Include *.js |
ForEach-Object { ForEach-Object {
$rel = $_.FullName.Substring($sourceDir.Length).TrimStart('\') $rel = $_.FullName.Substring($sourceDir.Length).TrimStart('\')
$dest = Join-Path $outputRoot $rel $dest = Join-Path $outputRoot $rel
Ensure-Dir (Split-Path -Parent $dest) Ensure-Dir (Split-Path -Parent $dest)
Copy-Item $_.FullName $dest -Force Copy-Item $_.FullName $dest -Force
$jsCount++
} }
# Env templates # Env templates
@@ -329,7 +331,7 @@ function Main {
$count++ $count++
} }
Write-Host ("{0,-33} => generated {1,3} .http file(s)" -f $col.name, $count) Write-Host ("{0,-33} => generated {1,3} .http file(s) and {2,3} .js file(s)" -f $col.name, $count, $jsCount)
} }
} }