elder-yudao-pro/deploy/local/prepare-ui.ps1

12 lines
611 B
PowerShell
Raw Permalink Normal View History

2026-10-05 22:02:14 +08:00
. (Join-Path $PSScriptRoot 'common.ps1')
$uiPath = Join-Path $repoPath 'yudao-ui-admin-vue3'
if (-not (Test-Path -LiteralPath (Join-Path $uiPath 'package.json'))) {
throw 'The maintained frontend source is missing: yudao-ui-admin-vue3.'
}
Push-Location $uiPath
try {
& npm.cmd exec --yes --package=pnpm@8.6.12 -- pnpm install --frozen-lockfile --reporter=append-only
if ($LASTEXITCODE -ne 0) { throw 'Frontend dependency installation failed.' }
} finally { Pop-Location }
Write-Output 'Frontend dependencies are prepared in yudao-ui-admin-vue3. Run start-ui.ps1 or the IDEA frontend configuration.'