|
@@ -5,13 +5,8 @@
|
|
<RootNamespace>TEAMModeBI</RootNamespace>
|
|
<RootNamespace>TEAMModeBI</RootNamespace>
|
|
</PropertyGroup>
|
|
</PropertyGroup>
|
|
|
|
|
|
- <PropertyGroup>
|
|
|
|
- <SpaRoot>ClientApp\</SpaRoot>
|
|
|
|
- <DefaultItemExcludes>$(DefaultItemExcludes);$(SpaRoot)node_modules\**</DefaultItemExcludes>
|
|
|
|
- </PropertyGroup>
|
|
|
|
|
|
|
|
<ItemGroup>
|
|
<ItemGroup>
|
|
-
|
|
|
|
<PackageReference Include="VueCliMiddleware" Version="6.0.0" />
|
|
<PackageReference Include="VueCliMiddleware" Version="6.0.0" />
|
|
</ItemGroup>
|
|
</ItemGroup>
|
|
|
|
|
|
@@ -25,7 +20,6 @@
|
|
<ItemGroup>
|
|
<ItemGroup>
|
|
<ProjectReference Include="..\TEAMModelOS.SDK\TEAMModelOS.SDK.csproj" />
|
|
<ProjectReference Include="..\TEAMModelOS.SDK\TEAMModelOS.SDK.csproj" />
|
|
</ItemGroup>
|
|
</ItemGroup>
|
|
-
|
|
|
|
<ItemGroup>
|
|
<ItemGroup>
|
|
<Reference Include="topsdk-net-core">
|
|
<Reference Include="topsdk-net-core">
|
|
<HintPath>Lib\topsdk-net-core.dll</HintPath>
|
|
<HintPath>Lib\topsdk-net-core.dll</HintPath>
|
|
@@ -35,37 +29,57 @@
|
|
<ItemGroup>
|
|
<ItemGroup>
|
|
<Folder Include="Controllers\DataCore\" />
|
|
<Folder Include="Controllers\DataCore\" />
|
|
<Folder Include="Models\" />
|
|
<Folder Include="Models\" />
|
|
|
|
+ <Folder Include="wwwroot\" />
|
|
</ItemGroup>
|
|
</ItemGroup>
|
|
|
|
+ <PropertyGroup>
|
|
|
|
+ <SpaRoot>ClientApp\</SpaRoot>
|
|
|
|
+ <DefaultItemExcludes>$(DefaultItemExcludes);$(SpaRoot)node_modules\**</DefaultItemExcludes>
|
|
|
|
+ </PropertyGroup>
|
|
|
|
|
|
- <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>
|
|
|
|
|
|
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
|
|
|
|
+ <WarningLevel>4</WarningLevel>
|
|
|
|
+ </PropertyGroup>
|
|
|
|
+ <Target Name="DebugEnsureNodeEnv" BeforeTargets="Build">
|
|
|
|
+ <!-- Build Target: 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." />
|
|
|
|
+ </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' " />
|
|
|
|
|
|
+ <Target Name="DebugEnsureNpm" AfterTargets="DebugEnsureNodeEnv">
|
|
|
|
+ <!-- Build Target: Ensure Node.js is installed -->
|
|
|
|
+ <Exec Command="npm --version" ContinueOnError="true">
|
|
|
|
+ <Output TaskParameter="ExitCode" PropertyName="ErrorCode" />
|
|
|
|
+ </Exec>
|
|
|
|
+ </Target>
|
|
|
|
|
|
- <!-- 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>
|
|
|
|
- <ExcludeFromSingleFile>true</ExcludeFromSingleFile>
|
|
|
|
- </ResolvedFileToPublish>
|
|
|
|
- </ItemGroup>
|
|
|
|
- </Target>
|
|
|
|
|
|
+ <Target Name="EnsureNodeModulesInstalled" BeforeTargets="Build" Inputs="package.json" Outputs="packages-lock.json">
|
|
|
|
+ <!-- Build Target: Restore NPM packages using npm -->
|
|
|
|
+ <Message Importance="high" Text="Restoring dependencies using 'npm'. This may take several minutes..." />
|
|
|
|
|
|
- <ProjectExtensions><VisualStudio><UserProperties clientapp_4package_1json__JsonSchema="" /></VisualStudio></ProjectExtensions>
|
|
|
|
|
|
+ <Exec WorkingDirectory="$(SpaRoot)" Command="npm install" />
|
|
|
|
+ </Target>
|
|
|
|
|
|
|
|
+ <Target Name="PublishRunWebpack" AfterTargets="ComputeFilesToPublish">
|
|
|
|
+ <!-- Build Target: Run webpack dist build -->
|
|
|
|
+ <Message Importance="high" Text="Running npm build..." />
|
|
|
|
+ <Exec WorkingDirectory="$(SpaRoot)" Command="npm run build" />
|
|
|
|
|
|
|
|
+ <!-- Include the newly-built files in the publish output -->
|
|
|
|
+ <ItemGroup>
|
|
|
|
+ <DistFiles Include="$(SpaRoot)dist\**" />
|
|
|
|
+ <ResolvedFileToPublish Include="@(DistFiles->'%(FullPath)')" Exclude="@(ResolvedFileToPublish)">
|
|
|
|
+ <RelativePath>%(DistFiles.Identity)</RelativePath>
|
|
|
|
+ <CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
|
|
|
|
+ </ResolvedFileToPublish>
|
|
|
|
+ </ItemGroup>
|
|
|
|
+ </Target>
|
|
|
|
+
|
|
|
|
+ <ProjectExtensions>
|
|
|
|
+ <VisualStudio>
|
|
|
|
+ <UserProperties appsettings_1json__JsonSchema="" clientapp_4package_1json__JsonSchema="" />
|
|
|
|
+ </VisualStudio>
|
|
|
|
+ </ProjectExtensions>
|
|
</Project>
|
|
</Project>
|
|
|
|
+
|