Skip to content

Commit

Permalink
plugin file issue
Browse files Browse the repository at this point in the history
  • Loading branch information
desmondinho committed Oct 4, 2024
1 parent 8ff9fd4 commit 9af1950
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions docs/LumexUI.Docs/LumexUI.Docs/LumexUI.Docs.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,26 @@
<Exec Command="$(GeneratorCommand)" />
</Target>

<!-- Copy theme files before Npm -->
<Target Name="CopyThemeFiles" AfterTargets="GenerateDocs" BeforeTargets="Npm">
<ItemGroup>
<ThemeFiles Include="$(PkgLumexUI)\theme\**\*" />
</ItemGroup>
<Copy SourceFiles="@(ThemeFiles)" DestinationFolder="$(OutDir)theme\%(RecursiveDir)" />
</Target>

<!-- Install npm dependencies if 'node_modules' is not present -->
<Target Name="Npm" BeforeTargets="Build" Condition="!Exists('node_modules')">
<Exec Command="npm ci" />
</Target>

<!-- Run the 'build' script on every build in Debug mode -->
<Target Name="NpmBuild" AfterTargets="CopyFilesToOutputDirectory" Condition="'$(Configuration)' == 'Debug'">
<Target Name="NpmBuild" AfterTargets="CopyThemeFiles" Condition="'$(Configuration)' == 'Debug'">
<Exec Command="npm run build" />
</Target>

<!-- Run the 'build:prod' script on every build in Release mode -->
<Target Name="NpmBuildProd" AfterTargets="CopyFilesToOutputDirectory" Condition="'$(Configuration)' == 'Release'">
<Target Name="NpmBuildProd" AfterTargets="CopyThemeFiles" Condition="'$(Configuration)' == 'Release'">
<Exec Command="npm run build:prod" />
</Target>

Expand All @@ -51,13 +59,5 @@
<Content Remove="package.json" />
<Content Remove="package-lock.json" />
</ItemGroup>

<ItemGroup>
<Content Include="$(PkgLumexUI)\theme\**\*">
<TargetPath>theme\%(RecursiveDir)%(Filename)%(Extension)</TargetPath>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<Visible>false</Visible>
</Content>
</ItemGroup>

</Project>

0 comments on commit 9af1950

Please sign in to comment.