Skip to content

Commit 11bd498

Browse files
committed
feat: Add upstream struct utility functions
- feat: Add `TagAll`, `AddFieldTags` and `AddTypeWithName` to work with upstream golang structs - feat: Add `WithReadOnlyFields` to generate JSII compatible TS Interfaces - chore: Does not require global `typescript` install for testing (using `package.json` and `npx`) - chore: Bump to golang 1.21
1 parent ac0debc commit 11bd498

File tree

12 files changed

+2840
-2518
lines changed

12 files changed

+2840
-2518
lines changed

.github/workflows/go.yml

Lines changed: 44 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,44 @@
1-
name: Go
2-
3-
on:
4-
push:
5-
branches: '*'
6-
pull_request:
7-
branches: 'master'
8-
9-
jobs:
10-
build:
11-
strategy:
12-
fail-fast: false
13-
matrix:
14-
go-version: [1.16.x]
15-
os: [ubuntu-latest, macos-latest, windows-latest]
16-
name: Build and test
17-
runs-on: ${{ matrix.os }}
18-
steps:
19-
20-
- name: Set up Go 1.x
21-
uses: actions/setup-go@v2
22-
with:
23-
go-version: ${{ matrix.go-version }}
24-
id: go
25-
26-
- name: Check out code into the Go module directory
27-
uses: actions/checkout@v2
28-
29-
- name: Get dependencies
30-
run: |
31-
go mod download
32-
33-
- name: Build
34-
run: |
35-
cd tscriptify
36-
go build -v .
37-
38-
- name: Test
39-
run: |
40-
cd typescriptify
41-
go test -v .
1+
name: Go
2+
3+
on:
4+
push:
5+
branches: "*"
6+
pull_request:
7+
branches: "main"
8+
9+
jobs:
10+
build:
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
go-version: [1.21.x]
15+
os: [ubuntu-latest, macos-latest, windows-latest]
16+
name: Build and test
17+
runs-on: ${{ matrix.os }}
18+
steps:
19+
- name: Set up Go 1.x
20+
uses: actions/setup-go@v2
21+
with:
22+
go-version: ${{ matrix.go-version }}
23+
id: go
24+
25+
- name: Check out code into the Go module directory
26+
uses: actions/checkout@v2
27+
28+
- name: Get dependencies
29+
run: |
30+
go mod download
31+
32+
- name: Ensure Typescript is available
33+
run: |
34+
npm install -g typescript
35+
36+
- name: Build
37+
run: |
38+
cd tscriptify
39+
go build -v .
40+
41+
- name: Test
42+
run: |
43+
cd typescriptify
44+
go test -v .

.gitignore

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
.idea/
2-
.vscode/
3-
*.iml
4-
tags
5-
tmp_*
1+
.idea/
2+
.vscode/
3+
*.iml
4+
tags
5+
tmp_*
6+
node_modules

0 commit comments

Comments
 (0)