Implemented Tailwind CSS class list extraction and integrated it into the build process of the frontend package
Some checks failed
Dev Publish: Nuget / Publish Dev Packages (push) Failing after 16s

This commit was merged in pull request #2.
This commit is contained in:
2026-01-14 16:10:06 +01:00
parent 7e0b427137
commit f836657603
8 changed files with 78 additions and 15 deletions

View File

@@ -23,7 +23,6 @@
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Components.Authorization" Version="10.0.1"/>
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="10.0.1"/>
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="10.0.1" PrivateAssets="all"/>
<PackageReference Include="Riok.Mapperly" Version="4.3.1-next.0"/>
<PackageReference Include="ShadcnBlazor" Version="1.0.5" />
<PackageReference Include="ShadcnBlazor.Extras" Version="1.0.5" />
@@ -32,5 +31,9 @@
<ItemGroup>
<ProjectReference Include="..\Moonlight.Shared\Moonlight.Shared.csproj"/>
</ItemGroup>
<ItemGroup>
<None Include="Styles/*" Pack="true" PackagePath="Styles/" />
<None Include="Moonlight.Frontend.targets" Pack="true" PackagePath="build\Moonlight.Frontend.targets" />
</ItemGroup>
</Project>

View File

@@ -0,0 +1,15 @@
<Project>
<PropertyGroup>
<MoonlightCssClassDir Condition="'$(MoonlightCssClassDir)' == ''">
$(MSBuildProjectDirectory)\bin\Moonlight.Frontend
</MoonlightCssClassDir>
</PropertyGroup>
<Target Name="CopyContents" BeforeTargets="Build">
<ItemGroup>
<Files Include="$(MSBuildThisFileDirectory)..\Styles\**\*" />
</ItemGroup>
<Copy SourceFiles="@(Files)" DestinationFolder="$(MoonlightCssClassDir)" SkipUnchangedFiles="true" />
</Target>
</Project>

View File

@@ -0,0 +1 @@
THIS WILL BE GENERATED ON PACKAGE BUILD