-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
297349b
commit c5c950b
Showing
3 changed files
with
68 additions
and
79 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
Songhay.Dashboard.Shell.Tests/Songhay.Dashboard.Shell.Tests.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,79 +1,68 @@ | ||
<Project Sdk="Microsoft.NET.Sdk.Web"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>netcoreapp2.0</TargetFramework> | ||
<TypeScriptCompileBlocked>true</TypeScriptCompileBlocked> | ||
<TypeScriptToolsVersion>Latest</TypeScriptToolsVersion> | ||
<IsPackable>false</IsPackable> | ||
<SpaRoot>Client\</SpaRoot> | ||
<DefaultItemExcludes>$(DefaultItemExcludes);$(SpaRoot)node_modules\**</DefaultItemExcludes> | ||
|
||
<!-- Set this to true if you enable server-side prerendering --> | ||
<BuildServerSideRenderer>false</BuildServerSideRenderer> | ||
|
||
<Authors>Bryan D. Wilhite</Authors> | ||
<Company>Songhay System</Company> | ||
<RepositoryUrl>https://github.com/BryanWilhite/Songhay.Dashboard</RepositoryUrl> | ||
<Description>Songhay System company dashboard.</Description> | ||
<Version>2.0.0</Version> | ||
<Copyright>© Bryan D. Wilhite 2018</Copyright> | ||
|
||
</PropertyGroup> | ||
|
||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project Sdk="Microsoft.NET.Sdk.Web"> | ||
<PropertyGroup> | ||
<TargetFramework>netcoreapp2.2</TargetFramework> | ||
<TypeScriptCompileBlocked>true</TypeScriptCompileBlocked> | ||
<TypeScriptToolsVersion>Latest</TypeScriptToolsVersion> | ||
<IsPackable>false</IsPackable> | ||
<SpaRoot>Client\</SpaRoot> | ||
<DefaultItemExcludes>$(DefaultItemExcludes);$(SpaRoot)node_modules\**</DefaultItemExcludes> | ||
<!-- Set this to true if you enable server-side prerendering --> | ||
<BuildServerSideRenderer>false</BuildServerSideRenderer> | ||
<Authors>Bryan D. Wilhite</Authors> | ||
<Company>Songhay System</Company> | ||
<RepositoryUrl>https://github.com/BryanWilhite/Songhay.Dashboard</RepositoryUrl> | ||
<Description>Songhay System company dashboard.</Description> | ||
<Version>2.0.0</Version> | ||
<Copyright>© Bryan D. Wilhite 2018</Copyright> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<Content Include="Client\src\assets\data\app.json" /> | ||
<Content Include="Client\src\assets\schemas\DarConfiguration.xsd" /> | ||
<Content Include="Client\src\assets\schemas\msxsl.xsd" /> | ||
<Content Include="Client\src\assets\schemas\opml.xsd" /> | ||
<Content Include="Client\src\assets\schemas\rss.xsd" /> | ||
<Content Include="Client\src\assets\schemas\soap1.1.xsd" /> | ||
<Content Include="Client\src\assets\schemas\wsdl.xsd" /> | ||
<Content Include="Client\src\assets\schemas\xhtml.xsd" /> | ||
<Content Include="Client\src\assets\schemas\xml.xsd" /> | ||
<Content Include="Client\src\assets\schemas\xsdschema.xsd" /> | ||
<Content Include="Client\src\assets\schemas\xslt.xsd" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<PackageReference Include="Microsoft.AspNetCore.All" Version="2.0.0" /> | ||
<PackageReference Include="Microsoft.AspNetCore.SpaServices.Extensions" Version="2.0.0" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<DotNetCliToolReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Tools" Version="2.0.1" /> | ||
</ItemGroup> | ||
<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\**" /> | ||
</ItemGroup> | ||
<Target Name="DebugEnsureNodeEnv" BeforeTargets="Build" Condition=" '$(Configuration)' == 'Debug' And !Exists('$(SpaRoot)node_modules') "> | ||
<!-- Ensure Node.js is installed --> | ||
<Exec Command="node --version" ContinueOnError="true"> | ||
<Output TaskParameter="ExitCode" PropertyName="ErrorCode" /> | ||
</Exec> | ||
<Error Condition="'$(ErrorCode)' != '0'" Text="Node.js is required to build and run this project. To continue, please install Node.js from https://nodejs.org/, and then restart your command prompt or IDE." /> | ||
<Message Importance="high" Text="Restoring dependencies using 'npm'. This may take several minutes..." /> | ||
<Exec WorkingDirectory="$(SpaRoot)" Command="npm install" /> | ||
</Target> | ||
<Target Name="PublishRunWebpack" AfterTargets="ComputeFilesToPublish"> | ||
<!-- As part of publishing, ensure the JS resources are freshly built in production mode --> | ||
<Exec WorkingDirectory="$(SpaRoot)" Command="npm install" /> | ||
<Exec WorkingDirectory="$(SpaRoot)" Command="npm run build -- --prod" /> | ||
<Exec WorkingDirectory="$(SpaRoot)" Command="npm run build:ssr -- --prod" Condition=" '$(BuildServerSideRenderer)' == 'true' " /> | ||
<!-- Include the newly-built files in the publish output --> | ||
<ItemGroup> | ||
<Content Include="Client\src\assets\data\app.json" /> | ||
<Content Include="Client\src\assets\schemas\DarConfiguration.xsd" /> | ||
<Content Include="Client\src\assets\schemas\msxsl.xsd" /> | ||
<Content Include="Client\src\assets\schemas\opml.xsd" /> | ||
<Content Include="Client\src\assets\schemas\rss.xsd" /> | ||
<Content Include="Client\src\assets\schemas\soap1.1.xsd" /> | ||
<Content Include="Client\src\assets\schemas\wsdl.xsd" /> | ||
<Content Include="Client\src\assets\schemas\xhtml.xsd" /> | ||
<Content Include="Client\src\assets\schemas\xml.xsd" /> | ||
<Content Include="Client\src\assets\schemas\xsdschema.xsd" /> | ||
<Content Include="Client\src\assets\schemas\xslt.xsd" /> | ||
<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> | ||
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory> | ||
</ResolvedFileToPublish> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Microsoft.AspNetCore.All" Version="2.0.0" /> | ||
<PackageReference Include="Microsoft.AspNetCore.SpaServices.Extensions" Version="2.0.0" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<DotNetCliToolReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Tools" Version="2.0.1" /> | ||
</ItemGroup> | ||
|
||
<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\**" /> | ||
</ItemGroup> | ||
|
||
<Target Name="DebugEnsureNodeEnv" BeforeTargets="Build" Condition=" '$(Configuration)' == 'Debug' And !Exists('$(SpaRoot)node_modules') "> | ||
<!-- Ensure Node.js is installed --> | ||
<Exec Command="node --version" ContinueOnError="true"> | ||
<Output TaskParameter="ExitCode" PropertyName="ErrorCode" /> | ||
</Exec> | ||
<Error Condition="'$(ErrorCode)' != '0'" Text="Node.js is required to build and run this project. To continue, please install Node.js from https://nodejs.org/, and then restart your command prompt or IDE." /> | ||
<Message Importance="high" Text="Restoring dependencies using 'npm'. This may take several minutes..." /> | ||
<Exec WorkingDirectory="$(SpaRoot)" Command="npm install" /> | ||
</Target> | ||
|
||
<Target Name="PublishRunWebpack" AfterTargets="ComputeFilesToPublish"> | ||
<!-- As part of publishing, ensure the JS resources are freshly built in production mode --> | ||
<Exec WorkingDirectory="$(SpaRoot)" Command="npm install" /> | ||
<Exec WorkingDirectory="$(SpaRoot)" Command="npm run build -- --prod" /> | ||
<Exec WorkingDirectory="$(SpaRoot)" Command="npm run build:ssr -- --prod" Condition=" '$(BuildServerSideRenderer)' == 'true' " /> | ||
|
||
<!-- Include the newly-built files in the publish output --> | ||
<ItemGroup> | ||
<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> | ||
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory> | ||
</ResolvedFileToPublish> | ||
</ItemGroup> | ||
</Target> | ||
|
||
</Project> | ||
</Target> | ||
</Project> |