Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 8 additions & 9 deletions src/ServicePulse.Host/build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,21 @@ if (Test-Path $AppOutputFolder) {
}

New-Item -ItemType Directory -Force -Path $AppOutputFolder

Push-Location $FrontendSourceFolder
npm audit --audit-level=low --omit=dev

if ( $? -eq $false ) {
exit $LastExitCode
}
npm audit --audit-level=low --omit=dev
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }

npm install
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }

npm run lint
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }

npm run build
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }

Remove-Item -Path "./dist/mockServiceWorker.js" -ErrorAction SilentlyContinue
Pop-Location

Copy-Item -path $FrontendSourceFolder/dist/* -Destination $AppOutputFolder -Recurse

if ( $? -eq $false ) {
exit $LastExitCode
}
11 changes: 0 additions & 11 deletions src/ServicePulse/build.ps1

This file was deleted.