# SPDX-License-Identifier: MPL-2.0 # # Verification locale complete avant commit (remplace la CI) : # Studio, puis build unifie de tous les types Windows. # Messages en ASCII : compatible Windows PowerShell 5.1 sans BOM. # # .\scripts\check.ps1 # .\scripts\check.ps1 -SkipStudio <# .SYNOPSIS Verification locale complete avant commit (remplace la CI). .DESCRIPTION Lance npm ci et npm run check dans studio\ui, puis build-all.ps1 -Type all : Godot, presets windows-msvc-debug, -release et -asan (compilation et tests), remplissage de bin\windows-x64\\. .PARAMETER SkipStudio Ne verifie pas Studio. .PARAMETER Help Affiche cette aide. #> [CmdletBinding()] param( [switch]$SkipStudio, [Alias("h", "?")] [switch]$Help ) if ($Help) { Get-Help $PSCommandPath -Detailed exit 0 } $ErrorActionPreference = "Stop" $root = Split-Path -Parent $PSScriptRoot # Interface d'abord : npm run check construit aussi studio\ui\dist, que build-all installe. $studio = Join-Path $root "studio\ui" if (-not $SkipStudio -and (Test-Path (Join-Path $studio "package.json"))) { Push-Location $studio try { Write-Host "==> studio : npm ci" -ForegroundColor Cyan npm ci if ($LASTEXITCODE -ne 0) { throw "Echec : npm ci" } Write-Host "==> studio : npm run check" -ForegroundColor Cyan npm run check if ($LASTEXITCODE -ne 0) { throw "Echec : npm run check" } } finally { Pop-Location } } # Build unifie (ADR 0010, modification de l'ADR 0004) : debug, release et asan, Godot # compris, puis bin\windows-x64\\. & (Join-Path $PSScriptRoot "build-all.ps1") -Type all -SkipUi Write-Host "Verification locale OK" -ForegroundColor Green