This repository has been archived by the owner on Mar 30, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
DeputyUI.csproj
124 lines (110 loc) · 5.28 KB
/
DeputyUI.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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>netcoreapp2.0</TargetFramework>
<TypeScriptCompileBlocked>true</TypeScriptCompileBlocked>
<TypeScriptToolsVersion>Latest</TypeScriptToolsVersion>
<IsPackable>false</IsPackable>
<AssemblyName>DeputyUI</AssemblyName>
<RootNamespace>DeputyUI</RootNamespace>
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.All" Version="2.0.3" />
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="2.0.1" />
</ItemGroup>
<ItemGroup>
<DotNetCliToolReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Tools" Version="2.0.0" />
</ItemGroup>
<ItemGroup>
<!-- Files not to publish (note that the 'dist' subfolders are re-added below) -->
<Content Remove="ClientApp\**" />
</ItemGroup>
<ItemGroup>
<Content Remove="package-lock.json" />
<Content Remove="package.json" />
<Content Remove="tsconfig.json" />
</ItemGroup>
<ItemGroup>
<None Remove="ClientApp\app\components\modal\modal.component.ts" />
<None Remove="ClientApp\app\models\index.ts" />
</ItemGroup>
<ItemGroup>
<None Include="package-lock.json" />
<None Include="package.json" />
<None Include="tsconfig.json" />
</ItemGroup>
<ItemGroup>
<TypeScriptCompile Include="ClientApp\app\components\modal\modal.component.ts" />
<TypeScriptCompile Include="ClientApp\app\models\index.ts" />
</ItemGroup>
<ItemGroup>
<None Update="ClientApp\app\models\AccessTokenRequest.d.ts">
<CustomToolNamespace>Models\AccessTokenRequest.cs</CustomToolNamespace>
</None>
<None Update="ClientApp\app\models\AccessTokenResponse.d.ts">
<CustomToolNamespace>Models\AccessTokenResponse.cs</CustomToolNamespace>
</None>
<None Update="ClientApp\app\models\Config.d.ts">
<CustomToolNamespace>Models\Config.cs</CustomToolNamespace>
</None>
<None Update="ClientApp\app\models\CreatorInfo.d.ts">
<CustomToolNamespace>Models\CreatorInfo.cs</CustomToolNamespace>
</None>
<None Update="ClientApp\app\models\DeputyError.d.ts">
<CustomToolNamespace>Models\DeputyError.cs</CustomToolNamespace>
</None>
<None Update="ClientApp\app\models\EmployeeInfo.d.ts">
<CustomToolNamespace>Models\EmployeeInfo.cs</CustomToolNamespace>
</None>
<None Update="ClientApp\app\models\LeaveRequest.d.ts">
<CustomToolNamespace>Models\LeaveRequest.cs</CustomToolNamespace>
</None>
<None Update="ClientApp\app\models\LeaveResponse.d.ts">
<CustomToolNamespace>Models\LeaveResponse.cs</CustomToolNamespace>
</None>
<None Update="ClientApp\app\models\LeaveStatus.ts">
<CustomToolNamespace>Models\LeaveStatus.cs</CustomToolNamespace>
</None>
<None Update="ClientApp\app\models\OperationalUnitInfo.d.ts">
<CustomToolNamespace>Models\OperationalUnitInfo.cs</CustomToolNamespace>
</None>
<None Update="ClientApp\app\models\ResourceRequest.d.ts">
<CustomToolNamespace>Services\ResourceRequest.cs</CustomToolNamespace>
</None>
<None Update="ClientApp\app\models\RosterMetaData.d.ts">
<CustomToolNamespace>Models\RosterMetaData.cs</CustomToolNamespace>
</None>
<None Update="ClientApp\app\models\RosterRequest.d.ts">
<CustomToolNamespace>Models\RosterRequest.cs</CustomToolNamespace>
</None>
<None Update="ClientApp\app\models\RosterResponse.d.ts">
<CustomToolNamespace>Models\RosterResponse.cs</CustomToolNamespace>
</None>
</ItemGroup>
<Target Name="DebugRunWebpack" BeforeTargets="Build" Condition=" '$(Configuration)' == 'Debug' And !Exists('wwwroot\dist') ">
<!-- 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." />
<!-- In development, the dist files won't exist on the first run or when cloning to
a different machine, so rebuild them if not already present. -->
<Message Importance="high" Text="Performing first-run Webpack build..." />
<Exec Command="node node_modules/webpack/bin/webpack.js --config webpack.config.vendor.js" />
<Exec Command="node node_modules/webpack/bin/webpack.js" />
</Target>
<Target Name="PublishRunWebpack" AfterTargets="ComputeFilesToPublish">
<!-- As part of publishing, ensure the JS resources are freshly built in production mode -->
<Exec Command="npm install" />
<Exec Command="node node_modules/webpack/bin/webpack.js --config webpack.config.vendor.js --env.prod" />
<Exec Command="node node_modules/webpack/bin/webpack.js --env.prod" />
<!-- Include the newly-built files in the publish output -->
<ItemGroup>
<DistFiles Include="wwwroot\dist\**; ClientApp\dist\**" />
<ResolvedFileToPublish Include="@(DistFiles->'%(FullPath)')" Exclude="@(ResolvedFileToPublish)">
<RelativePath>%(DistFiles.Identity)</RelativePath>
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
</ResolvedFileToPublish>
</ItemGroup>
</Target>
</Project>