File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,16 +6,18 @@ $pubFolderToDelete = $scriptPath + "\pub"
66remove-item - path $pubFolderToDelete - Force - Recurse - ErrorAction SilentlyContinue
77
88# *** WebSPA image ***
9- $webSPAPathToJson = $scriptPath + " \src\Web\WebSPA\eShopOnContainers.WebSPA\project.json"
9+ $webSPAPath = $scriptPath + " \src\Web\WebSPA\eShopOnContainers.WebSPA"
10+ $webSPAPathToJson = $webSPAPath + " \project.json"
1011Write-Host " webSPAPathToJson is $webSPAPathToJson " - ForegroundColor Yellow
1112$webSPAPathToPub = $scriptPath + " \pub\webSPA"
12- $webSPAPathToNpmBat = $scriptPath + " \src\Web\WebSPA\eShopOnContainers.WebSPA\buildspa.bat"
1313Write-Host " webSPAPathToPub is $webSPAPathToPub " - ForegroundColor Yellow
1414
15+ Write-Host " Installing npm dependencies"
16+ Start-Process - WorkingDirectory $webSPAPath - NoNewWindow - Wait npm i
17+
1518Write-Host " Restore Dependencies just in case as it is needed to run dotnet publish" - ForegroundColor Blue
1619dotnet restore $webSPAPathToJson
1720dotnet build $webSPAPathToJson
18- # Start-Process "cmd.exe" "/c " + $webSPAPathToNpmBat
1921dotnet publish $webSPAPathToJson - o $webSPAPathToPub
2022
2123# *** identitySvc image ***
Original file line number Diff line number Diff line change @@ -17,16 +17,18 @@ dotnet build $webPathToJson
1717dotnet publish $webPathToJson - o $webPathToPub
1818
1919# *** WebSPA image ***
20- $webSPAPathToJson = $scriptPath + " \src\Web\WebSPA\eShopOnContainers.WebSPA\project.json"
20+ $webSPAPath = $scriptPath + " \src\Web\WebSPA\eShopOnContainers.WebSPA"
21+ $webSPAPathToJson = $webSPAPath + " \project.json"
2122Write-Host " webSPAPathToJson is $webSPAPathToJson " - ForegroundColor Yellow
2223$webSPAPathToPub = $scriptPath + " \pub\webSPA"
23- $webSPAPathToNpmBat = $scriptPath + " \src\Web\WebSPA\eShopOnContainers.WebSPA\buildspa.bat"
2424Write-Host " webSPAPathToPub is $webSPAPathToPub " - ForegroundColor Yellow
2525
26+ Write-Host " Installing npm dependencies"
27+ Start-Process - WorkingDirectory $webSPAPath - NoNewWindow - Wait npm i
28+
2629Write-Host " Restore Dependencies just in case as it is needed to run dotnet publish" - ForegroundColor Blue
2730dotnet restore $webSPAPathToJson
2831dotnet build $webSPAPathToJson
29- # Start-Process "cmd.exe" "/c " + $webSPAPathToNpmBat
3032dotnet publish $webSPAPathToJson - o $webSPAPathToPub
3133
3234# *** identitySvc image ***
You can’t perform that action at this time.
0 commit comments