Prepared tailwind system for plugin builds and exports via nuget. Removed obsolete old css bundling. Added helper scripts for building. Rewritten build scripts

This commit is contained in:
2025-05-11 00:07:41 +02:00
parent 1a67fcffb4
commit 1b4d32eed3
28 changed files with 424 additions and 519 deletions

View File

@@ -0,0 +1,25 @@
#!/bin/bash
# We are building the packages in the debug mode because they are meant for development
# purposes only. When build for production, release builds will be used ofc
set -e
echo "Creating nuget packages"
mkdir -p finalPackages
echo "+ ApiServer Server"
dotnet build -c Debug Moonlight.ApiServer
dotnet pack -c Debug Moonlight.ApiServer --output finalPackages/
dotnet run --project Resources/Scripts/Scripts.csproj content finalPackages/Moonlight.ApiServer.2.1.0.nupkg ".*"
echo "+ Client"
dotnet build -c Debug Moonlight.Client
dotnet pack -c Debug Moonlight.Client --output finalPackages/
dotnet run --project Resources/Scripts/Scripts.csproj staticWebAssets finalPackages/Moonlight.Client.2.1.0.nupkg "_framework\/.*" style.min.css
dotnet run --project Resources/Scripts/Scripts.csproj src finalPackages/Moonlight.Client.2.1.0.nupkg Moonlight.Client/ *.razor
dotnet run --project Resources/Scripts/Scripts.csproj src finalPackages/Moonlight.Client.2.1.0.nupkg Moonlight.Client/ wwwroot/*.html
echo "+ Shared library"
dotnet build -c Debug Moonlight.Shared
dotnet pack -c Debug Moonlight.Shared --output finalPackages/