-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
digitalkhatt.org.csproj
154 lines (141 loc) · 8.72 KB
/
digitalkhatt.org.csproj
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>netcoreapp6.0</TargetFramework>
<TypeScriptCompileBlocked>true</TypeScriptCompileBlocked>
<TypeScriptToolsVersion>Latest</TypeScriptToolsVersion>
<IsPackable>false</IsPackable>
<SpaRoot>ClientApp\</SpaRoot>
<DefaultItemExcludes>$(DefaultItemExcludes);$(SpaRoot)node_modules\**</DefaultItemExcludes>
<!-- Set this to true if you enable server-side prerendering -->
<BuildServerSideRenderer>false</BuildServerSideRenderer>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.SpaServices.Extensions" Version="6.0.25" />
<PackageReference Include="Microsoft.TypeScript.MSBuild" Version="5.3.3">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>
<ItemGroup>
<!-- Don't publish the SPA source files, but do show them in the project files list -->
<Compile Remove="ClientApp\custom_typings\**" />
<Compile Remove="ClientApp\src\app\viewer\**" />
<Content Remove="$(SpaRoot)**" />
<Content Remove="ClientApp\custom_typings\**" />
<Content Remove="ClientApp\src\app\viewer\**" />
<EmbeddedResource Remove="ClientApp\custom_typings\**" />
<EmbeddedResource Remove="ClientApp\src\app\viewer\**" />
<None Remove="$(SpaRoot)**" />
<None Remove="ClientApp\custom_typings\**" />
<None Remove="ClientApp\src\app\viewer\**" />
<None Include="$(SpaRoot)**" Exclude="$(SpaRoot)node_modules\**" />
</ItemGroup>
<ItemGroup>
<None Remove="ClientApp\src\app\components\hbmedina\tajweed.service.ts" />
<None Remove="ClientApp\src\app\components\hboldmedina\page_view.ts" />
<None Remove="ClientApp\src\app\components\hboldmedina\qurantext.service.ts" />
<None Remove="ClientApp\src\app\components\hboldmedina\rendering_states.ts" />
<None Remove="ClientApp\src\app\components\oldmedina\page_view.ts" />
<None Remove="ClientApp\src\app\components\oldmedina\qurangestures.directive.ts" />
<None Remove="ClientApp\src\app\components\oldmedina\quranzoom.directive.ts" />
<None Remove="ClientApp\src\app\components\oldmedina\quranzoom.touch.directive.ts" />
<None Remove="ClientApp\src\app\components\oldmedina\rendering_states.ts" />
<None Remove="ClientApp\src\app\components\quranotf\page_view.ts" />
<None Remove="ClientApp\src\app\components\quranotf\qurangestures.directive.ts" />
<None Remove="ClientApp\src\app\components\quranotf\quranzoom.directive.ts" />
<None Remove="ClientApp\src\app\components\quranotf\quranzoom.touch.directive.ts" />
<None Remove="ClientApp\src\app\components\quranotf\rendering_queue.ts" />
<None Remove="ClientApp\src\app\components\quranotf\rendering_states.ts" />
<None Remove="ClientApp\src\app\components\quran\page_view.ts" />
<None Remove="ClientApp\src\app\components\quran\qurangestures.directive.ts" />
<None Remove="ClientApp\src\app\components\quran\quranzoom.directive.ts" />
<None Remove="ClientApp\src\app\components\quran\quranzoom.touch.directive.ts" />
<None Remove="ClientApp\src\app\components\quran\rendering_queue.ts" />
<None Remove="ClientApp\src\app\components\quran\rendering_states.ts" />
<None Remove="ClientApp\src\app\services\cache-route-reuse.strategy.ts" />
<None Remove="ClientApp\src\app\services\navigation\sidebarcontents.ts" />
<None Remove="ClientApp\src\app\services\PWA.service.ts" />
<None Remove="ClientApp\src\app\services\quranservice\quran_shaper.ts" />
<None Remove="ClientApp\src\app\services\qurantext.service.ts" />
<None Remove="ClientApp\src\app\services\tajweed.service.ts" />
</ItemGroup>
<ItemGroup>
<TypeScriptCompile Remove="ClientApp\src\app\components\hbmedina\quran_text.ts" />
<TypeScriptCompile Remove="ClientApp\src\app\components\hboldmedina\hbmedina.component.ts" />
<TypeScriptCompile Remove="ClientApp\src\app\components\hboldmedina\quran_text_old_madinah.ts" />
<TypeScriptCompile Remove="ClientApp\src\app\components\pagenotfound\pagenotfound.component.ts" />
<TypeScriptCompile Remove="ClientApp\src\app\services\quran_text.ts" />
<TypeScriptCompile Remove="ClientApp\src\app\services\quran_text_old_madinah.ts" />
</ItemGroup>
<ItemGroup>
<Service Include="{508349b6-6b84-4df5-91f0-309beebad82d}" />
</ItemGroup>
<ItemGroup>
<Folder Include="ClientApp\src\app\components\about\" />
</ItemGroup>
<ItemGroup>
<TypeScriptCompile Include="ClientApp\src\app\components\oldmedina\page_view.ts" />
<TypeScriptCompile Include="ClientApp\src\app\components\oldmedina\qurangestures.directive.ts">
<SubType>Code</SubType>
</TypeScriptCompile>
<TypeScriptCompile Include="ClientApp\src\app\components\oldmedina\quranzoom.directive.ts" />
<TypeScriptCompile Include="ClientApp\src\app\components\oldmedina\quranzoom.touch.directive.ts">
<SubType>Code</SubType>
</TypeScriptCompile>
<TypeScriptCompile Include="ClientApp\src\app\components\oldmedina\rendering_states.ts" />
<TypeScriptCompile Include="ClientApp\src\app\components\quranotf\page_view.ts" />
<TypeScriptCompile Include="ClientApp\src\app\components\quranotf\qurangestures.directive.ts">
<SubType>Code</SubType>
</TypeScriptCompile>
<TypeScriptCompile Include="ClientApp\src\app\components\quranotf\quranzoom.directive.ts" />
<TypeScriptCompile Include="ClientApp\src\app\components\quranotf\quranzoom.touch.directive.ts">
<SubType>Code</SubType>
</TypeScriptCompile>
<TypeScriptCompile Include="ClientApp\src\app\components\quranotf\rendering_queue.ts" />
<TypeScriptCompile Include="ClientApp\src\app\components\quranotf\rendering_states.ts" />
<TypeScriptCompile Include="ClientApp\src\app\components\quran\page_view.ts" />
<TypeScriptCompile Include="ClientApp\src\app\components\quran\qurangestures.directive.ts">
<SubType>Code</SubType>
</TypeScriptCompile>
<TypeScriptCompile Include="ClientApp\src\app\components\quran\quranzoom.touch.directive.ts">
<SubType>Code</SubType>
</TypeScriptCompile>
<TypeScriptCompile Include="ClientApp\src\app\components\quran\rendering_queue.ts" />
<TypeScriptCompile Include="ClientApp\src\app\components\quran\rendering_states.ts" />
<TypeScriptCompile Include="ClientApp\src\app\components\quran\quranzoom.directive.ts" />
<TypeScriptCompile Include="ClientApp\src\app\services\cache-route-reuse.strategy.ts" />
<TypeScriptCompile Include="ClientApp\src\app\services\navigation\sidebarcontents.ts" />
<TypeScriptCompile Include="ClientApp\src\app\services\qurantext.service.ts">
<SubType>Code</SubType>
</TypeScriptCompile>
<TypeScriptCompile Include="ClientApp\src\app\services\tajweed.service.ts">
<SubType>Code</SubType>
</TypeScriptCompile>
<TypeScriptCompile Include="ClientApp\src\app\services\PWA.service.ts" />
<TypeScriptCompile Include="ClientApp\src\app\services\quranservice\quran_shaper.ts" />
</ItemGroup>
<Target Name="DebugEnsureNodeEnv" BeforeTargets="Build" Condition=" '$(Configuration)' == 'Debug' And !Exists('$(SpaRoot)node_modules') ">
<!-- Ensure Node.js is installed -->
<Exec Command="node --version" ContinueOnError="true">
<Output TaskParameter="ExitCode" PropertyName="ErrorCode" />
</Exec>
<Error Condition="'$(ErrorCode)' != '0'" Text="Node.js is required to build and run this project. To continue, please install Node.js from https://nodejs.org/, and then restart your command prompt or IDE." />
<Message Importance="high" Text="Restoring dependencies using 'npm'. This may take several minutes..." />
<Exec WorkingDirectory="$(SpaRoot)" Command="npm install" />
</Target>
<Target Name="PublishRunWebpack" AfterTargets="ComputeFilesToPublish">
<!-- As part of publishing, ensure the JS resources are freshly built in production mode -->
<Exec WorkingDirectory="$(SpaRoot)" Command="npm install" />
<Exec WorkingDirectory="$(SpaRoot)" Command="npm run build -- --configuration production" />
<Exec WorkingDirectory="$(SpaRoot)" Command="npm run build:ssr -- --configuration production" Condition=" '$(BuildServerSideRenderer)' == 'true' " />
<!-- Include the newly-built files in the publish output -->
<ItemGroup>
<DistFiles Include="$(SpaRoot)dist\**; $(SpaRoot)dist-server\**" />
<DistFiles Include="$(SpaRoot)node_modules\**" Condition="'$(BuildServerSideRenderer)' == 'true'" />
<ResolvedFileToPublish Include="@(DistFiles->'%(FullPath)')" Exclude="@(ResolvedFileToPublish)">
<RelativePath>%(DistFiles.Identity)</RelativePath>
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
</ResolvedFileToPublish>
</ItemGroup>
</Target>
</Project>