-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- generate TypeScript client by kiota and dotnet swagger - migrate to .NET 8 - update Microsoft.Diagnostics.Runtime
- Loading branch information
Showing
51 changed files
with
2,429 additions
and
204 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"version": 1, | ||
"isRoot": true, | ||
"tools": { | ||
"microsoft.openapi.kiota": { | ||
"version": "1.10.1", | ||
"commands": [ | ||
"kiota" | ||
] | ||
}, | ||
"swashbuckle.aspnetcore.cli": { | ||
"version": "6.5.0", | ||
"commands": [ | ||
"swagger" | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
$ErrorActionPreference = "Stop" | ||
|
||
$RepositoryRoot = Split-Path $PSScriptRoot | ||
$FrontendRoot = Join-Path $RepositoryRoot 'src/Heartbeat.WebUI/ClientApp' | ||
$ContractPath = Join-Path $FrontendRoot 'api.yml' | ||
$DllPath = Join-Path $RepositoryRoot 'src/Heartbeat.WebUI/bin/Debug/net8.0/Heartbeat.WebUI.dll' | ||
|
||
Push-Location | ||
try | ||
{ | ||
Set-Location $RepositoryRoot | ||
|
||
dotnet tool restore | ||
dotnet build --configuration Debug | ||
|
||
Set-Location $FrontendRoot | ||
dotnet swagger tofile --yaml --output $ContractPath $DllPath Heartbeat | ||
dotnet kiota generate -l typescript --openapi $ContractPath -c HeartbeatClient -o ./src/client | ||
|
||
# TODO try --serializer Microsoft.Kiota.Serialization.Json.JsonSerializationWriterFactory --deserializer Microsoft.Kiota.Serialization.Json.JsonParseNodeFactory | ||
} | ||
catch { | ||
Write-Host 'Generate client - FAILED!' -ForegroundColor Red | ||
throw | ||
} | ||
finally { | ||
Pop-Location | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"version": 1, | ||
"isRoot": true, | ||
"tools": { | ||
"microsoft.openapi.kiota": { | ||
"version": "1.10.1", | ||
"commands": [ | ||
"kiota" | ||
] | ||
}, | ||
"swashbuckle.aspnetcore.cli": { | ||
"version": "6.5.0", | ||
"commands": [ | ||
"swagger" | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
BROWSER=none | ||
# https://stackoverflow.com/questions/70599784/failed-to-parse-source-map | ||
GENERATE_SOURCEMAP=false |
Oops, something went wrong.