Skip to content

add tiholic/openapi-typescript-codegen as submodule #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 29, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 12 additions & 4 deletions .github/workflows/check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ name: QC

on:
pull_request:
branches: ['**']
types: [synchronize, opened, reopened, ready_for_review]
branches: [ '**' ]
types: [ synchronize, opened, reopened, ready_for_review ]
push:
branches: [main]
branches: [ main ]

jobs:
lint:
Expand All @@ -14,14 +14,22 @@ jobs:

steps:
- uses: actions/checkout@v2
with:
submodules: recursive

- uses: actions/setup-node@v2
id: setup-node
with:
cache: 'npm'
node-version: '14.18.2'

- run: npm i
- name: install
run: |
cd openapi-typescript-codegen
npm i
npm run build
cd ../
npm i

- name: lint
run: ./node_modules/.bin/prettier --check **/*.ts
12 changes: 10 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,30 @@ name: Release

on:
release:
types: [published]
types: [ published ]

jobs:
publish_release_artifacts:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
with:
submodules: recursive

- uses: actions/setup-node@v2
id: setup-node
with:
cache: 'npm'
node-version: '14.18.2'

- run: npm i
- name: install
run: |
cd openapi-typescript-codegen
npm i
npm run build
cd ../
npm i

- name: Compile to es5 (web)
run: npm run webpack
Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "openapi-typescript-codegen"]
path = openapi-typescript-codegen
url = [email protected]:tiholic/openapi-typescript-codegen.git
11 changes: 9 additions & 2 deletions DeveloperNotes.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,15 @@ OpenAPI Spec obtained from the api docs.

#### installing "openapi-typescript-codegen"

If "openapi-typescript-codegen" dependency is pointing to a local path, clone [tiholic/openapi-typescript-codegen](https://github.com/tiholic/openapi-typescript-codegen)
into that location and switch to desired branch
`openapi-typescript-codegen` is added as a submodule.
Run `git submodule update --init` to clone all submodules.

Setup `openapi-typescript-codegen` by running:
```bash
cd openapi-typescript-codegen
npm run build
```
and run `npm i` to set-up the project

#### Generation from Spec

Expand Down
1 change: 1 addition & 0 deletions openapi-typescript-codegen
Loading