aboutsummaryrefslogtreecommitdiff
path: root/Timeline/Timeline-CI.csproj
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2019-03-14 23:01:19 +0800
committercrupest <crupest@outlook.com>2019-03-14 23:01:19 +0800
commitff8a3ceca3c4bfe5b858957e66ed7e8f1719c97e (patch)
tree05d93a561ef35c53d1343131907e6fbaf2fe30ee /Timeline/Timeline-CI.csproj
parent1fc9f877760fa78da57ec22c08c5d6e9e194fafe (diff)
downloadtimeline-ff8a3ceca3c4bfe5b858957e66ed7e8f1719c97e.tar.gz
timeline-ff8a3ceca3c4bfe5b858957e66ed7e8f1719c97e.tar.bz2
timeline-ff8a3ceca3c4bfe5b858957e66ed7e8f1719c97e.zip
Optimize. Get rid of repeated yarn install.
Diffstat (limited to 'Timeline/Timeline-CI.csproj')
-rw-r--r--Timeline/Timeline-CI.csproj34
1 files changed, 34 insertions, 0 deletions
diff --git a/Timeline/Timeline-CI.csproj b/Timeline/Timeline-CI.csproj
new file mode 100644
index 00000000..e8d35b1d
--- /dev/null
+++ b/Timeline/Timeline-CI.csproj
@@ -0,0 +1,34 @@
+<Project Sdk="Microsoft.NET.Sdk.Web">
+
+ <PropertyGroup>
+ <TargetFramework>netcoreapp2.2</TargetFramework>
+ <TypeScriptCompileBlocked>true</TypeScriptCompileBlocked>
+ <TypeScriptToolsVersion>Latest</TypeScriptToolsVersion>
+ <IsPackable>false</IsPackable>
+ <SpaRoot>ClientApp\</SpaRoot>
+ <DefaultItemExcludes>$(DefaultItemExcludes);$(SpaRoot)node_modules\**</DefaultItemExcludes>
+ <Authors>crupest</Authors>
+ </PropertyGroup>
+
+ <ItemGroup>
+ <PackageReference Include="Microsoft.AspNetCore.App" />
+ </ItemGroup>
+
+ <ItemGroup>
+ <!-- Don't publish the SPA source files, but do show them in the project files list -->
+ <Content Remove="$(SpaRoot)**" />
+ <None Remove="$(SpaRoot)**" />
+ <None Include="$(SpaRoot)**" Exclude="$(SpaRoot)node_modules\**" />
+ </ItemGroup>
+
+ <Target Name="PublishRunWebpack" AfterTargets="ComputeFilesToPublish">
+ <ItemGroup>
+ <DistFiles Include="$(SpaRoot)dist\**" />
+ <ResolvedFileToPublish Include="@(DistFiles->'%(FullPath)')" Exclude="@(ResolvedFileToPublish)">
+ <RelativePath>%(DistFiles.Identity)</RelativePath>
+ <CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
+ </ResolvedFileToPublish>
+ </ItemGroup>
+ </Target>
+
+</Project>