2019-08-05 02:24:46 +02:00
|
|
|
$curDir = pwd
|
2019-07-25 03:59:14 +02:00
|
|
|
$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"
|
2019-08-05 02:24:46 +02:00
|
|
|
cd $dir
|
2022-03-03 23:53:09 +01:00
|
|
|
npm ci
|
|
|
|
npm run build
|
2019-08-05 02:24:46 +02:00
|
|
|
cd $curDir
|
2019-07-25 03:59:14 +02:00
|
|
|
echo "Publish"
|
|
|
|
dotnet publish $dir\Admin.csproj -c "Release" -o $dir\obj\Azure\publish
|