4NK_wallet/scripts/copy-ihm-dist.ps1
Your Name a189470d49
Some checks failed
CI - 4NK Node / Integration Tests (push) Failing after 9s
CI - 4NK Node / Docker Build & Test (push) Failing after 8s
CI - 4NK Node / Documentation Tests (push) Failing after 3s
CI - 4NK Node / Release Guard (push) Has been skipped
CI - 4NK Node / Performance Tests (push) Failing after 29s
CI - 4NK Node / Code Quality (push) Failing after 32s
CI - 4NK Node / Unit Tests (push) Failing after 30s
CI - 4NK Node / Security Tests (push) Failing after 28s
CI - 4NK Node / Notify (push) Failing after 1s
chore(template-sync): aligner avec 4NK_template (.cursor/.gitea/.gitea_template/scripts/ignores)
2025-08-27 11:37:12 +02:00

22 lines
913 B
PowerShell

param()
$ErrorActionPreference = 'Stop'
$repoRoot = Resolve-Path "$PSScriptRoot/../.."
$ihmDist = Join-Path $repoRoot 'ihm_client/dist'
$targetAssets = Join-Path (Resolve-Path "$PSScriptRoot/..") 'assets/ihm'
$targetWeb = Join-Path (Resolve-Path "$PSScriptRoot/..") 'web/ihm'
if (!(Test-Path $ihmDist)) {
Write-Error "Le build d'ihm_client est introuvable: $ihmDist"
}
New-Item -ItemType Directory -Force -Path $targetAssets | Out-Null
Remove-Item -Recurse -Force -ErrorAction SilentlyContinue (Join-Path $targetAssets '*') | Out-Null
Copy-Item -Recurse -Force "$ihmDist/*" $targetAssets
Write-Host "Copie terminée: $ihmDist -> $targetAssets"
New-Item -ItemType Directory -Force -Path $targetWeb | Out-Null
Remove-Item -Recurse -Force -ErrorAction SilentlyContinue (Join-Path $targetWeb '*') | Out-Null
Copy-Item -Recurse -Force "$ihmDist/*" $targetWeb
Write-Host "Copie terminée: $ihmDist -> $targetWeb"