Skip to content

Commit de35068

Browse files
committed
add tiholic/openapi-typescript-codegen as submodule
1 parent d5492cd commit de35068

File tree

7 files changed

+29267
-2070
lines changed

7 files changed

+29267
-2070
lines changed

.github/workflows/check.yaml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ name: QC
22

33
on:
44
pull_request:
5-
branches: ['**']
6-
types: [synchronize, opened, reopened, ready_for_review]
5+
branches: [ '**' ]
6+
types: [ synchronize, opened, reopened, ready_for_review ]
77
push:
8-
branches: [main]
8+
branches: [ main ]
99

1010
jobs:
1111
lint:
@@ -14,14 +14,22 @@ jobs:
1414

1515
steps:
1616
- uses: actions/checkout@v2
17+
with:
18+
submodules: recursive
1719

1820
- uses: actions/setup-node@v2
1921
id: setup-node
2022
with:
2123
cache: 'npm'
2224
node-version: '14.18.2'
2325

24-
- run: npm i
26+
- name: install
27+
run: |
28+
npm i -g rollup
29+
cd openapi-typescript-codegen
30+
npm run build
31+
cd ../
32+
npm i
2533
2634
- name: lint
2735
run: ./node_modules/.bin/prettier --check **/*.ts

.github/workflows/release.yaml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,30 @@ name: Release
22

33
on:
44
release:
5-
types: [published]
5+
types: [ published ]
66

77
jobs:
88
publish_release_artifacts:
99
runs-on: ubuntu-latest
1010

1111
steps:
1212
- uses: actions/checkout@v2
13+
with:
14+
submodules: recursive
1315

1416
- uses: actions/setup-node@v2
1517
id: setup-node
1618
with:
1719
cache: 'npm'
1820
node-version: '14.18.2'
1921

20-
- run: npm i
22+
- name: install
23+
run: |
24+
npm i -g rollup
25+
cd openapi-typescript-codegen
26+
npm run build
27+
cd ../
28+
npm i
2129
2230
- name: Compile to es5 (web)
2331
run: npm run webpack

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "openapi-typescript-codegen"]
2+
path = openapi-typescript-codegen
3+
url = [email protected]:tiholic/openapi-typescript-codegen.git

DeveloperNotes.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,15 @@ OpenAPI Spec obtained from the api docs.
55

66
#### installing "openapi-typescript-codegen"
77

8-
If "openapi-typescript-codegen" dependency is pointing to a local path, clone [tiholic/openapi-typescript-codegen](https://github.com/tiholic/openapi-typescript-codegen)
9-
into that location and switch to desired branch
8+
`openapi-typescript-codegen` is added as a submodule.
9+
Run `git submodule update --init` to clone all submodules.
10+
11+
Setup `openapi-typescript-codegen` by running:
12+
```bash
13+
cd openapi-typescript-codegen
14+
npm run build
15+
```
16+
and run `npm i` to set-up the project
1017

1118
#### Generation from Spec
1219

openapi-typescript-codegen

0 commit comments

Comments
 (0)