diff options
author | 杨宇千 <crupest@outlook.com> | 2019-03-14 23:53:54 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-14 23:53:54 +0800 |
commit | 393ca55a960abc7d2343a8a36a093d253eddf134 (patch) | |
tree | 0e19b39fd67a9650f0c0821796ffdb303471fadc /Timeline | |
parent | 19a12661e981718aebc418624c602b852e68d54d (diff) | |
parent | f4d3aff068199592ee995cd89941a1d2d4053524 (diff) | |
download | timeline-393ca55a960abc7d2343a8a36a093d253eddf134.tar.gz timeline-393ca55a960abc7d2343a8a36a093d253eddf134.tar.bz2 timeline-393ca55a960abc7d2343a8a36a093d253eddf134.zip |
Merge pull request #16 from crupest/ci
Enhance ci.
Diffstat (limited to 'Timeline')
-rw-r--r-- | Timeline/Timeline-CI.csproj | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/Timeline/Timeline-CI.csproj b/Timeline/Timeline-CI.csproj new file mode 100644 index 00000000..65bfacdf --- /dev/null +++ b/Timeline/Timeline-CI.csproj @@ -0,0 +1,35 @@ +<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> + <AssemblyName>Timeline</AssemblyName> + </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> |