-
Notifications
You must be signed in to change notification settings - Fork 1
/
OpenSpeechTools.csproj
94 lines (83 loc) · 4.9 KB
/
OpenSpeechTools.csproj
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
<TypeScriptCompileBlocked>true</TypeScriptCompileBlocked>
<TypeScriptToolsVersion>Latest</TypeScriptToolsVersion>
<IsPackable>false</IsPackable>
<SpaRoot>ClientApp\</SpaRoot>
<DefaultItemExcludes>$(DefaultItemExcludes);$(SpaRoot)node_modules\**</DefaultItemExcludes>
<RootNamespace>OpenSpeechTools</RootNamespace>
<ApplicationIcon>ClientApp\public\favicon.ico</ApplicationIcon>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="AWSSDK.S3" Version="3.3.110.52" />
<PackageReference Include="Microsoft.AspNetCore.SignalR" Version="1.1.0" />
<PackageReference Include="Microsoft.AspNetCore.SpaServices.Extensions" Version="3.1.1" />
<PackageReference Include="MySql.Data" Version="8.0.19" />
<PackageReference Include="Newtonsoft.JSON" Version="13.0.2" />
<PackageReference Include="Node.js" Version="5.3.0" />
<PackageReference Include="Npm" Version="3.5.2" />
</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>
<ItemGroup>
<None Remove="ClientApp\package.json" />
<None Remove="ClientApp\src\Components\Autogen\Inputs\Manager\Components.json" />
<None Remove="ClientApp\src\Components\FileManagement\FIleUploaderPresentationalComponent.tsx" />
<None Remove="ClientApp\src\Components\SandboxController.tsx" />
<None Remove="ClientApp\src\SignalR\ModelDataClient.ts" />
<None Remove="ClientApp\src\Views\Auto-Gen-View.tsx" />
<None Remove="ClientApp\src\Views\Doctor-View.tsx" />
<None Remove="ClientApp\src\Views\FunctionalElements\AutogenDemos.tsx" />
<None Remove="ClientApp\src\Views\FunctionalElements\AutoGenDeviceAddress.tsx" />
<None Remove="ClientApp\src\Views\FunctionalElements\ControlPanel.tsx" />
<None Remove="ClientApp\src\Views\Patient-View.tsx" />
<None Remove="ClientApp\src\Views\Sandbox-View.tsx" />
</ItemGroup>
<ItemGroup>
<Content Include="ClientApp\package.json" />
<Content Include="ClientApp\src\Components\Autogen\Inputs\Manager\Components.json">
<ExcludeFromSingleFile>true</ExcludeFromSingleFile>
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
</Content>
</ItemGroup>
<ItemGroup>
<TypeScriptCompile Include="ClientApp\src\Components\FileManagement\FileUploaderPresentationalComponent.tsx" />
<TypeScriptCompile Include="ClientApp\src\SignalR\ModelDataClient.ts" />
<TypeScriptCompile Include="ClientApp\src\Views\Sandbox-View.tsx" />
<TypeScriptCompile Include="ClientApp\src\Views\Doctor-View.tsx" />
<TypeScriptCompile Include="ClientApp\src\Views\FunctionalElements\AutoGenDeviceAddress.tsx" />
<TypeScriptCompile Include="ClientApp\src\Views\FunctionalElements\AutoGenDemos.tsx" />
<TypeScriptCompile Include="ClientApp\src\Views\FunctionalElements\ControlPanel.tsx" />
<TypeScriptCompile Include="ClientApp\src\Views\Patient-View.tsx" />
<TypeScriptCompile Include="ClientApp\src\Views\Auto-Gen-View.tsx" />
</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" />
<!-- Include the newly-built files in the publish output -->
<ItemGroup>
<DistFiles Include="$(SpaRoot)build\**; $(SpaRoot)build-ssr\**" />
<ResolvedFileToPublish Include="@(DistFiles->'%(FullPath)')" Exclude="@(ResolvedFileToPublish)">
<RelativePath>%(DistFiles.Identity)</RelativePath>
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
<ExcludeFromSingleFile>true</ExcludeFromSingleFile>
</ResolvedFileToPublish>
</ItemGroup>
</Target>
<ProjectExtensions><VisualStudio><UserProperties properties_4launchsettings_1json__JsonSchema="..\ClientApp\src\views\Maps.jsx" /></VisualStudio></ProjectExtensions>
</Project>