-
Notifications
You must be signed in to change notification settings - Fork 0
/
JournalLabs.Web.csproj
106 lines (103 loc) · 5.96 KB
/
JournalLabs.Web.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
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>netcoreapp2.0</TargetFramework>
<TypeScriptCompileBlocked>true</TypeScriptCompileBlocked>
<TypeScriptToolsVersion>Latest</TypeScriptToolsVersion>
<IsPackable>false</IsPackable>
<AssemblyName>JournalLabs.Web</AssemblyName>
<RootNamespace>JournalLabs.Web</RootNamespace>
</PropertyGroup>
<ItemGroup>
<!-- New Meta Package has SpaServices in It -->
<PackageReference Include="Microsoft.AspNetCore.All" Version="2.0.0" />
<PackageReference Include="NETStandard.Library" Version="2.0.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="2.0.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="2.0.0" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="1.0.0" />
</ItemGroup>
<ItemGroup>
<!-- Files not to show in IDE -->
<None Remove="ClientApp\app\models\addStudentToGroup.ts" />
<None Remove="ClientApp\app\models\addStudentToJournalViewModel.ts" />
<None Remove="ClientApp\app\models\assistantsJournalViewModel.ts" />
<None Remove="ClientApp\app\models\cathedra.ts" />
<None Remove="ClientApp\app\models\createJournalViewModel.ts" />
<None Remove="ClientApp\app\models\enums\KindOfMark.ts" />
<None Remove="ClientApp\app\models\Group.ts" />
<None Remove="ClientApp\app\models\headerKindOfWorkBlock.ts" />
<None Remove="ClientApp\app\models\journalViewModel.ts" />
<None Remove="ClientApp\app\models\Remark.ts" />
<None Remove="ClientApp\app\models\studentGroup.ts" />
<None Remove="ClientApp\app\models\studentJournal.ts" />
<None Remove="ClientApp\app\models\subgroupStudents.ts" />
<None Remove="ClientApp\app\models\teacherJournal.ts" />
<None Remove="ClientApp\app\shared\cathedra.service.ts" />
<None Remove="ClientApp\app\shared\group.service.ts" />
<None Remove="ClientApp\app\shared\log.service.ts" />
<None Remove="ClientApp\app\shared\student-group.service.ts" />
<None Remove="ClientApp\app\shared\teacher-journal.ts" />
<None Remove="yarn.lock" />
<Content Remove="wwwroot\dist\**" />
<None Remove="ClientApp\dist\**" />
<Content Remove="coverage\**" />
<!-- Files not to publish (note that the 'dist' subfolders are re-added below) -->
<Content Remove="ClientApp\**" />
</ItemGroup>
<ItemGroup>
<TypeScriptCompile Include="ClientApp\app\models\addStudentToGroup.ts" />
<TypeScriptCompile Include="ClientApp\app\models\addStudentToJournalViewModel.ts" />
<TypeScriptCompile Include="ClientApp\app\models\assistantsJournalViewModel.ts" />
<TypeScriptCompile Include="ClientApp\app\models\Cathedra.ts" />
<TypeScriptCompile Include="ClientApp\app\models\createJournalViewModel.ts" />
<TypeScriptCompile Include="ClientApp\app\models\enums\KindOfMark.ts" />
<TypeScriptCompile Include="ClientApp\app\models\Group.ts" />
<TypeScriptCompile Include="ClientApp\app\models\headerKindOfWorkBlock.ts" />
<TypeScriptCompile Include="ClientApp\app\models\journalViewModel.ts" />
<TypeScriptCompile Include="ClientApp\app\models\Remark.ts" />
<TypeScriptCompile Include="ClientApp\app\models\studentGroup.ts" />
<TypeScriptCompile Include="ClientApp\app\models\studentJournal.ts" />
<TypeScriptCompile Include="ClientApp\app\models\studentLabBlocksViewModel.ts" />
<TypeScriptCompile Include="ClientApp\app\models\subgroupStudents.ts" />
<TypeScriptCompile Include="ClientApp\app\models\teacherJournal.ts" />
<TypeScriptCompile Include="ClientApp\app\shared\cathedra.service.ts" />
<TypeScriptCompile Include="ClientApp\app\shared\group.service.ts" />
<TypeScriptCompile Include="ClientApp\app\shared\log.service.ts" />
<TypeScriptCompile Include="ClientApp\app\shared\remark.service.ts" />
<TypeScriptCompile Include="ClientApp\app\shared\student-group.service.ts" />
<TypeScriptCompile Include="ClientApp\app\shared\teacher-journal.ts" />
</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="npm install" />
<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="RunWebpack" 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>
<Target Name="CleanDist" AfterTargets="Clean">
<ItemGroup>
<FilesToDelete Include="ClientApp\dist\**; wwwroot\dist\**" />
</ItemGroup>
<Delete Files="@(FilesToDelete)" />
<RemoveDir Directories="Client\dist; wwwroot\dist" />
</Target>
</Project>