Skip to content

Commit

Permalink
v0.1.8
Browse files Browse the repository at this point in the history
  • Loading branch information
desmondinho committed Oct 5, 2024
1 parent 4a4f573 commit 399287e
Showing 1 changed file with 17 additions and 25 deletions.
42 changes: 17 additions & 25 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.5</Version>
<Version>0.1.7</Version>
<Authors>desmondinho</Authors>
<PackageId>LumexUI</PackageId>
<!--<PackageIcon>logo.png</PackageIcon>-->
Expand All @@ -27,6 +27,10 @@
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
</PropertyGroup>

<PropertyGroup>
<PackDependsOn>Build;$(PackDependsOn)</PackDependsOn>
</PropertyGroup>

<PropertyGroup>
<TargetsForTfmSpecificContentInPackage>
$(TargetsForTfmSpecificContentInPackage);AddUtilitiesToOutput
Expand All @@ -38,6 +42,16 @@
<None Include="..\..\README.md" Pack="true" Visible="false" PackagePath="" />
<!--<None Include="..\assets\logo.png" Pack="true" Visible="false" PackagePath="" />-->
</ItemGroup>
<ItemGroup>
<Content Include="Styles\*.cs">
<Pack>true</Pack>
<PackagePath>theme\components\%(Filename)%(Extension)</PackagePath>
</Content>
<Content Include="Scripts\Plugin\dist\plugin.js">
<Pack>true</Pack>
<PackagePath>theme\plugin.js</PackagePath>
</Content>
</ItemGroup>

<ItemGroup>
<SupportedPlatform Include="browser" />
Expand Down Expand Up @@ -68,34 +82,12 @@
<Exec Command="npm ci" />
</Target>

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

<!-- Pack content files -->
<Target Name="PackThemeContents" AfterTargets="NpmBuild" BeforeTargets="Build;Pack">
<Message Text="Packing theme content files..." Importance="high" />

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

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

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

<!-- Remove package.json and package-lock.json from the build output -->
<ItemGroup>
<None Include="package.json" />
Expand Down

0 comments on commit 399287e

Please sign in to comment.