* Don't publish too much of ClientApp

* Fix scripts and remove extra publish items

Commit migrated from dotnet/aspnetcore@a431f8efa1
This commit is contained in:
Ryan Brandenburg 2018-08-13 16:21:50 -07:00 коммит произвёл GitHub
Родитель df8c8a1e47
Коммит f8a4143e0a
3 изменённых файлов: 5 добавлений и 14 удалений

Просмотреть файл

@ -28,10 +28,7 @@
<ItemGroup>
<!-- Don't publish the SPA source files, but do show them in the project files list -->
<Content Remove="$(SpaRoot)**" />
<None Include="$(SpaRoot)**"
Exclude="$(SpaRoot)node_modules\**"
CopyToPublishDirectory="PreserveNewest"
CopyToOutputDirectory="PreserveNewest" />
<None Include="$(SpaRoot)**" Exclude="$(SpaRoot)node_modules\**" />
</ItemGroup>
<!--/-:cnd:noEmit -->
@ -54,7 +51,7 @@
<!-- Include the newly-built files in the publish output -->
<ItemGroup>
<DistFiles Include="$(SpaRoot)dist\**; $(SpaRoot)dist-server\**; $(SpaRoot)package.json" />
<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>

Просмотреть файл

@ -25,10 +25,7 @@
<ItemGroup>
<!-- Don't publish the SPA source files, but do show them in the project files list -->
<Content Remove="$(SpaRoot)**" />
<None Include="$(SpaRoot)**"
Exclude="$(SpaRoot)node_modules\**"
CopyToPublishDirectory="PreserveNewest"
CopyToOutputDirectory="PreserveNewest" />
<None Include="$(SpaRoot)**" Exclude="$(SpaRoot)node_modules\**" />
</ItemGroup>
<!--/-:cnd:noEmit -->

Просмотреть файл

@ -25,10 +25,7 @@
<ItemGroup>
<!-- Don't publish the SPA source files, but do show them in the project files list -->
<Content Remove="$(SpaRoot)**" />
<None Include="$(SpaRoot)**"
Exclude="$(SpaRoot)node_modules\**"
CopyToPublishDirectory="PreserveNewest"
CopyToOutputDirectory="PreserveNewest" />
<None Include="$(SpaRoot)**" Exclude="$(SpaRoot)node_modules\**" />
</ItemGroup>
<!--/-:cnd:noEmit -->
@ -50,7 +47,7 @@
<!-- Include the newly-built files in the publish output -->
<ItemGroup>
<DistFiles Include="$(SpaRoot)build\**; $(SpaRoot)build-ssr\**; $(SpaRoot)package.json" />
<DistFiles Include="$(SpaRoot)build\**; $(SpaRoot)build-ssr\**" />
<ResolvedFileToPublish Include="@(DistFiles->'%(FullPath)')" Exclude="@(ResolvedFileToPublish)">
<RelativePath>%(DistFiles.Identity)</RelativePath>
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>