* 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> <ItemGroup>
<!-- Don't publish the SPA source files, but do show them in the project files list --> <!-- Don't publish the SPA source files, but do show them in the project files list -->
<Content Remove="$(SpaRoot)**" /> <Content Remove="$(SpaRoot)**" />
<None Include="$(SpaRoot)**" <None Include="$(SpaRoot)**" Exclude="$(SpaRoot)node_modules\**" />
Exclude="$(SpaRoot)node_modules\**"
CopyToPublishDirectory="PreserveNewest"
CopyToOutputDirectory="PreserveNewest" />
</ItemGroup> </ItemGroup>
<!--/-:cnd:noEmit --> <!--/-:cnd:noEmit -->
@ -54,7 +51,7 @@
<!-- Include the newly-built files in the publish output --> <!-- Include the newly-built files in the publish output -->
<ItemGroup> <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'" /> <DistFiles Include="$(SpaRoot)node_modules\**" Condition="'$(BuildServerSideRenderer)' == 'true'" />
<ResolvedFileToPublish Include="@(DistFiles->'%(FullPath)')" Exclude="@(ResolvedFileToPublish)"> <ResolvedFileToPublish Include="@(DistFiles->'%(FullPath)')" Exclude="@(ResolvedFileToPublish)">
<RelativePath>%(DistFiles.Identity)</RelativePath> <RelativePath>%(DistFiles.Identity)</RelativePath>

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

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

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

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