1
0
mirror of https://github.com/bitwarden/server.git synced 2024-12-03 14:03:33 +01:00
bitwarden-server/src/Admin/build.ps1
2022-03-03 23:53:09 +01:00

19 lines
441 B
PowerShell

$curDir = pwd
$dir = Split-Path -Parent $MyInvocation.MyCommand.Path
echo "`n## Building Admin"
echo "`nBuilding app"
echo ".NET Core version $(dotnet --version)"
echo "Restore"
dotnet restore $dir\Admin.csproj
echo "Clean"
dotnet clean $dir\Admin.csproj -c "Release" -o $dir\obj\Azure\publish
echo "Node Build"
cd $dir
npm ci
npm run build
cd $curDir
echo "Publish"
dotnet publish $dir\Admin.csproj -c "Release" -o $dir\obj\Azure\publish