Skip to content

Commit

Permalink
Rename generated file for clarity and origin
Browse files Browse the repository at this point in the history
Adding *.generated.d.ts files to gitignore
  • Loading branch information
raix committed Nov 10, 2023
1 parent edb5b63 commit b3e9ce0
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 174 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -378,3 +378,6 @@ FodyWeavers.xsd

# macOS files
.DS_Store

# Generated files
**/*.generated.d.ts
4 changes: 2 additions & 2 deletions application/account-management/Api/Api.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
<Exec Command="dotnet tool restore"/>
<Exec Command="bun install" WorkingDirectory="$(ProjectDir)/../WebApp/"/>
<Exec Command="SWAGGER_GENERATOR=true dotnet swagger tofile --output $(OutputPath)swagger.json $(OutputPath)$(AssemblyName).dll v1" WorkingDirectory="$(ProjectDir)"/>
<Exec Command="bunx openapi-typescript $(OutputPath)swagger.json -o ../WebApp/src/lib/api/schema.d.ts" WorkingDirectory="$(ProjectDir)"/>
<Exec Command="bunx prettier ../WebApp/src/lib/api/schema.d.ts --write" WorkingDirectory="$(ProjectDir)"/>
<Exec Command="bunx openapi-typescript $(OutputPath)swagger.json -o ../WebApp/src/lib/api/api.generated.d.ts" WorkingDirectory="$(ProjectDir)"/>
<Exec Command="bunx prettier ../WebApp/src/lib/api/api.generated.d.ts --write" WorkingDirectory="$(ProjectDir)"/>
</Target>

</Project>
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import createClient from "openapi-fetch";
import type { paths } from "./schema";
import type { paths } from "./api.generated";

const baseUrl = "https://localhost:8443";
export const accountManagementApi = createClient<paths>({ baseUrl });
171 changes: 0 additions & 171 deletions application/account-management/WebApp/src/lib/api/schema.d.ts

This file was deleted.

0 comments on commit b3e9ce0

Please sign in to comment.