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
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:
@@ -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>
|
||||
15
Moonlight.Frontend/Moonlight.Frontend.targets
Normal file
15
Moonlight.Frontend/Moonlight.Frontend.targets
Normal 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>
|
||||
1
Moonlight.Frontend/Styles/Moonlight.Frontend.map
Normal file
1
Moonlight.Frontend/Styles/Moonlight.Frontend.map
Normal file
@@ -0,0 +1 @@
|
||||
THIS WILL BE GENERATED ON PACKAGE BUILD
|
||||
Reference in New Issue
Block a user