diff options
author | crupest <crupest@outlook.com> | 2019-03-14 23:01:19 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2019-03-14 23:01:19 +0800 |
commit | 5158785a69a6305c4ed8ec9c3403e3e1bd6cf79d (patch) | |
tree | e33d3ae317623c3d457ba9bc07f7dbbb16c5a494 /Timeline | |
parent | 8c613260fdcccebaa6ba25d0fae237a5efd7a902 (diff) | |
download | timeline-5158785a69a6305c4ed8ec9c3403e3e1bd6cf79d.tar.gz timeline-5158785a69a6305c4ed8ec9c3403e3e1bd6cf79d.tar.bz2 timeline-5158785a69a6305c4ed8ec9c3403e3e1bd6cf79d.zip |
Optimize. Get rid of repeated yarn install.
Diffstat (limited to 'Timeline')
-rw-r--r-- | Timeline/Timeline-CI.csproj | 34 |
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> |