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 | 1c9edc5914869a3bbde20742c483182636ee4d43 (patch) | |
tree | 89c54eab50776ee09b7b9196d42fef2ab3ac8a10 /Timeline | |
parent | c65db42c9ce3532509bbd0b4abfc500692cfe4d3 (diff) | |
parent | 723bbf776ff902abd61e7bc354b77b178777324d (diff) | |
download | timeline-1c9edc5914869a3bbde20742c483182636ee4d43.tar.gz timeline-1c9edc5914869a3bbde20742c483182636ee4d43.tar.bz2 timeline-1c9edc5914869a3bbde20742c483182636ee4d43.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> |