Skip to content

Commit 5c6c839

Browse files
author
Stedra Kristóf
committed
Fix typescript build
1 parent 6c2dfa5 commit 5c6c839

File tree

7 files changed

+58
-4
lines changed

7 files changed

+58
-4
lines changed
Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,32 @@
1-
<Project Sdk="Microsoft.NET.Sdk.Razor">
1+
<Project Sdk="Microsoft.NET.Sdk.Razor">
22

33
<PropertyGroup>
44
<TargetFramework>net6.0</TargetFramework>
55
<Nullable>enable</Nullable>
66
<ImplicitUsings>enable</ImplicitUsings>
77
</PropertyGroup>
88

9-
109
<ItemGroup>
1110
<SupportedPlatform Include="browser" />
1211
</ItemGroup>
13-
12+
1413
<ItemGroup>
1514
<PackageReference Include="FluentValidation" />
1615
<PackageReference Include="Microsoft.AspNetCore.Components.Web" />
16+
<PackageReference Include="Microsoft.TypeScript.MSBuild">
17+
<PrivateAssets>all</PrivateAssets>
18+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
19+
</PackageReference>
1720
</ItemGroup>
1821

1922
<ItemGroup>
2023
<ProjectReference Include="..\AutSoft.Core\AutSoft.Common.csproj" />
2124
<ProjectReference Include="..\AutSoft.Linq\AutSoft.Linq.csproj" />
2225
</ItemGroup>
2326

27+
<Target Name="RemoveTSConfigFileFromPackage" AfterTargets="CompileTypeScriptWithTSConfig">
28+
<ItemGroup>
29+
<Content Remove="**\tsconfig.json" />
30+
</ItemGroup>
31+
</Target>
2432
</Project>
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"compilerOptions": {
3+
"noImplicitAny": false,
4+
"noEmitOnError": true,
5+
"removeComments": false,
6+
"sourceMap": true,
7+
"target": "es5",
8+
"outFile": "wwwroot/app/AutSoft.AspNetCore.Blazor.js"
9+
},
10+
"exclude": [
11+
"node_modules",
12+
"wwwroot"
13+
],
14+
"include": [
15+
"**/*"
16+
]
17+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+


src/AutSoft.Mud.Blazor/AutSoft.Mud.Blazor.csproj

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212
</ItemGroup>
1313

1414
<ItemGroup>
15+
<PackageReference Include="Microsoft.TypeScript.MSBuild">
16+
<PrivateAssets>all</PrivateAssets>
17+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
18+
</PackageReference>
1519
<PackageReference Include="Sve.Blazor.InfiniteScroll" />
1620
<PackageReference Include="FluentValidation" />
1721
<PackageReference Include="Microsoft.AspNetCore.Components.Web" />
@@ -26,4 +30,9 @@
2630
<ProjectReference Include="..\AutSoft.AspNetCore.Blazor\AutSoft.AspNetCore.Blazor.csproj" />
2731
</ItemGroup>
2832

33+
<Target Name="RemoveTSConfigFileFromPackage" AfterTargets="CompileTypeScriptWithTSConfig">
34+
<ItemGroup>
35+
<Content Remove="**\tsconfig.json" />
36+
</ItemGroup>
37+
</Target>
2938
</Project>
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"compilerOptions": {
3+
"noImplicitAny": false,
4+
"noEmitOnError": true,
5+
"removeComments": false,
6+
"sourceMap": true,
7+
"target": "es5",
8+
"outFile": "wwwroot/app/AutSoft.Mud.Blazor.js"
9+
},
10+
"exclude": [
11+
"node_modules",
12+
"wwwroot"
13+
],
14+
"include": [
15+
"**/*"
16+
]
17+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+


src/Directory.Packages.props

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@
1212
<PackageVersion Include="Microsoft.EntityFrameworkCore.Design" Version="6.0.8" />
1313
<PackageVersion Include="Microsoft.EntityFrameworkCore.SqlServer.NetTopologySuite" Version="6.0.8" />
1414
<PackageVersion Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="6.0.0" />
15+
<PackageVersion Include="Microsoft.TypeScript.MSBuild" Version="4.9.4" />
1516
<PackageVersion Include="Stateless" Version="5.12.0" />
1617
<PackageVersion Include="Sve.Blazor.InfiniteScroll" Version="1.0.0-alpha" />
1718
<PackageVersion Include="Microsoft.AspNetCore.Components.Web" Version="6.0.12" />
1819
<PackageVersion Include="MudBlazor" Version="6.1.6" />
1920
</ItemGroup>
20-
</Project>
21+
</Project>

0 commit comments

Comments
 (0)