deployFrontent.ps1
echo "Deploy frontend..."
echo "Build frontend..."
cd Client
if (Test-Path "dist") { Remove-Item "dist" -Recurse -Force };
npm install
npm run build
echo "Remove Client dir if exists..."
cd.. # back to root
if (Test-Path "Deployment\Proj\Client")
{ Remove-Item "Deployment\Proj\Client" -Recurse -Force };
echo "Copy frontend items to Deployment..."
New-Item -ItemType Directory -Path "Deployment\Proj\Client" -Force
Copy-Item -Path "Client\dist\*" -Destination "Deployment\Proj\Client" -Recurse
echo "...Frontend deployment - done"