-
-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathLumexUI.Docs.csproj
More file actions
55 lines (44 loc) · 1.96 KB
/
LumexUI.Docs.csproj
File metadata and controls
55 lines (44 loc) · 1.96 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>net9.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>
<PropertyGroup>
<SolutionDir Condition=" '$(SolutionDir)' == '' ">$(MSBuildThisFileDirectory)../../</SolutionDir>
</PropertyGroup>
<PropertyGroup>
<DocsGeneratorProject>dotnet run -c Release --project "$(SolutionDir)docs/LumexUI.Docs.Generator/LumexUI.Docs.Generator.csproj"</DocsGeneratorProject>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Server" Version="9.0.5" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="../LumexUI.Docs.Client/LumexUI.Docs.Client.csproj" />
<ProjectReference Include="../LumexUI.Docs.Generator/LumexUI.Docs.Generator.csproj" />
</ItemGroup>
<!-- Run the docs content generation command -->
<Target Name="DocsGenerator" BeforeTargets="BeforeBuild">
<Exec Command="$(DocsGeneratorProject)" />
</Target>
<!-- Install npm dependencies if 'node_modules' is not present -->
<Target Name="Npm" AfterTargets="DocsGenerator" Condition="!Exists('node_modules')">
<Message Text="LumexUI.Docs: running npm ci..." Importance="high" />
<Exec Command="npm ci" />
</Target>
<!-- Run the 'build' script on every build in Debug mode -->
<Target Name="NpmBuild" AfterTargets="Npm" Condition="'$(Configuration)' == 'Debug'">
<Message Text="LumexUI.Docs: running npm build..." Importance="high" />
<Exec Command="npm run build" />
</Target>
<!-- Run the 'build:prod' script on every build in Release mode -->
<Target Name="NpmBuildProd" AfterTargets="Npm" Condition="'$(Configuration)' == 'Release'">
<Message Text="LumexUI.Docs: running npm build:prod..." Importance="high" />
<Exec Command="npm run build:prod" />
</Target>
<!-- Remove these files from the build output -->
<ItemGroup>
<Content Remove="package.json" />
<Content Remove="package-lock.json" />
</ItemGroup>
</Project>