初次切换前端架构

This commit is contained in:
2026-07-23 19:59:15 +08:00 Unverified
parent 4780ca88d0
commit 6fd468d9e0
19 changed files with 2507 additions and 6 deletions
+21
View File
@@ -12,6 +12,27 @@ $publishRoot = [IO.Path]::GetFullPath(
else {
Join-Path $repositoryRoot $OutputDirectory
}))
$clientRoot = Join-Path $repositoryRoot 'src\Eis.Web\ClientApp'
Push-Location $clientRoot
try {
$npmInstallArgs = @('ci')
& npm @npmInstallArgs
$npmInstallExitCode = $LASTEXITCODE
if ($npmInstallExitCode -ne 0) {
throw "npm ci 失败,退出码:$npmInstallExitCode"
}
$npmBuildArgs = @('run', 'build')
& npm @npmBuildArgs
$npmBuildExitCode = $LASTEXITCODE
if ($npmBuildExitCode -ne 0) {
throw "Vue 生产构建失败,退出码:$npmBuildExitCode"
}
}
finally {
Pop-Location
}
$projects = @(
@{