11 changed files with 56 additions and 25 deletions
@ -0,0 +1,17 @@ |
|||
# COMMON PATHS |
|||
|
|||
$rootFolder = (Get-Item -Path "./" -Verbose).FullName |
|||
|
|||
# List of solutions used only in development mode |
|||
$batchCommandPaths = @( |
|||
"../aspnet-core/services/start-identity-server.bat", |
|||
"../aspnet-core/services/start-backend-admin.bat", |
|||
"../aspnet-core/services/start-apigateway-host.bat", |
|||
"../aspnet-core/services/start-apigateway-admin.bat", |
|||
"../aspnet-core/services/start-messages.bat", |
|||
"../aspnet-core/services/start-platform.bat" |
|||
) |
|||
|
|||
Write-host "" |
|||
Write-host ":::::::::::::: !!! You are in development mode !!! ::::::::::::::" -ForegroundColor red -BackgroundColor yellow |
|||
Write-host "" |
|||
@ -0,0 +1,11 @@ |
|||
. "./build-aspnetcore-common.ps1" |
|||
|
|||
# Build all solutions |
|||
foreach ($batchCommandPath in $batchCommandPaths) { |
|||
$file = [io.fileinfo]$batchCommandPath; |
|||
Write-Host $file.DirectoryName |
|||
Set-Location $file.DirectoryName |
|||
CMD /c $file.Name --publish -Wait |
|||
} |
|||
|
|||
Set-Location $rootFolder |
|||
@ -0,0 +1,20 @@ |
|||
$rootFolder = (Get-Item -Path "./" -Verbose).FullName |
|||
|
|||
$vuePath = Join-Path $rootFolder "../vueJs" |
|||
|
|||
$publishPath = Join-Path $rootFolder "../aspnet-core/services/Publish/client" |
|||
$distPath = Join-Path $rootFolder "../aspnet-core/services/Publish/client/dist" |
|||
$dockerPath = Join-Path $rootFolder "../aspnet-core/services/Publish/client/docker" |
|||
Set-Location $vuePath |
|||
|
|||
Remove-Item (Join-Path $vuePath "dist") -Recurse |
|||
Remove-Item $publishPath -Recurse |
|||
|
|||
CMD /c npm install |
|||
CMD /c npm run build:prod |
|||
|
|||
Copy-Item -Path (Join-Path $vuePath "dist") -Destination $distPath -Recurse |
|||
Copy-Item -Path (Join-Path $vuePath "docker") -Destination $dockerPath -Recurse |
|||
Copy-Item (Join-Path $vuePath "Dockerfile") -Destination $publishPath |
|||
|
|||
Set-Location $rootFolder |
|||
Loading…
Reference in new issue