初次切换前端架构
This commit is contained in:
@@ -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 = @(
|
||||
@{
|
||||
|
||||
Reference in New Issue
Block a user