Skip to content

Commit

Permalink
v0.1.5
Browse files Browse the repository at this point in the history
  • Loading branch information
desmondinho committed Oct 4, 2024
1 parent ce55bdf commit 4a4f573
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions src/LumexUI/LumexUI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<PropertyGroup>
<Title>LumexUI</Title>
<Description>🚀 A versatile Blazor component library built using Tailwind CSS for efficient web development</Description>
<Version>0.1.4</Version>
<Version>0.1.5</Version>
<Authors>desmondinho</Authors>
<PackageId>LumexUI</PackageId>
<!--<PackageIcon>logo.png</PackageIcon>-->
Expand Down Expand Up @@ -63,36 +63,36 @@
</Target>

<!-- Install npm dependencies if 'node_modules' is not present -->
<Target Name="Npm" BeforeTargets="BeforeBuild" Condition="!Exists('node_modules')">
<Target Name="Npm" BeforeTargets="NpmBuild" Condition="!Exists('node_modules')">
<Message Text="Running npm ci..." Importance="high" />
<Exec Command="npm ci" />
</Target>

<!-- Run the 'build' script on every build -->
<Target Name="NpmBuild" DependsOnTargets="Npm" BeforeTargets="Build">
<Target Name="NpmBuild" DependsOnTargets="Npm" BeforeTargets="PrepareForBuild">
<Message Text="Running npm build..." Importance="high" />
<Exec Command="npm run build" />
</Target>

<!-- Include content files to the build output if 'theme' is not present -->
<Target Name="IncludeContentsToOutput" DependsOnTargets="NpmBuild" AfterTargets="NpmBuild">
<Message Text="Including content files..." Importance="high" />
<!-- Pack content files -->
<Target Name="PackThemeContents" AfterTargets="NpmBuild" BeforeTargets="Build;Pack">
<Message Text="Packing theme content files..." Importance="high" />

<!-- Dynamically create items for the content files -->
<ItemGroup>
<StyleFiles Include="Styles\*.cs" />
<PluginFile Include="Scripts\Plugin\dist\plugin.js" />
</ItemGroup>

<ItemGroup>
<Content Include="@(StyleFiles)">
<ThemeContent Include="Styles\*.cs">
<Pack>true</Pack>
<PackagePath>theme\components\%(Filename)%(Extension)</PackagePath>
</Content>
<Content Include="@(PluginFile)">
</ThemeContent>
<ThemeContent Include="Scripts\Plugin\dist\plugin.js">
<Pack>true</Pack>
<PackagePath>theme\plugin.js</PackagePath>
</Content>
</ThemeContent>
</ItemGroup>

<Message Text="Theme content files: @(ThemeContent)" Importance="high" />

<ItemGroup>
<Content Include="@(ThemeContent)" />
</ItemGroup>
</Target>

Expand Down

0 comments on commit 4a4f573

Please sign in to comment.