Skip to content

Commit a2c2669

Browse files
authored
Merge pull request #9 from AimCup/master
pull master to next
2 parents c19500b + 21fa7aa commit a2c2669

96 files changed

Lines changed: 6799 additions & 1677 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/deploy.next.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
- name: Fetch OpenAPI schema
2828
run: npm run open:api
2929
- name: Generate API client
30-
run: npm run open:generate
30+
run: npm run openapi-ts
3131
- name: Build and deploy to Next environment
3232
run: docker-compose -f docker-compose.next.yml up -d --build
3333
env:

.github/workflows/deploy.production.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- name: Fetch OpenAPI schema
2020
run: npm run open:api
2121
- name: Generate API client
22-
run: npm run open:generate
22+
run: npm run openapi-ts
2323
- name: Build and deploy to Next environment
2424
run: docker-compose -f docker-compose.yml up -d --build
2525
env:

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,6 @@ next-env.d.ts
3737
openapi.json
3838
/generated
3939
.idea
40-
.env
40+
.env
41+
42+
/client

.idea/misc.xml

Lines changed: 0 additions & 7 deletions
This file was deleted.

openapi-ts.config.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import { defineConfig } from "@hey-api/openapi-ts";
2+
3+
export default defineConfig({
4+
client: "@hey-api/client-fetch",
5+
input: "./openapi.json",
6+
output: {
7+
format: "prettier",
8+
path: "./client",
9+
},
10+
types: {
11+
enums: "typescript",
12+
},
13+
});

0 commit comments

Comments
 (0)