forked from tkrajina/typescriptify-golang-structs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
26 lines (22 loc) · 1.16 KB
/
makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
.PHONY: build
build:
go build -v -o /dev/null ./...
.PHONY: install
install:
go install ./...
.PHONY: test
test: node_modules lint
go test ./...
go run example/example.go
npx tsc browser_test/example_output.ts
# Make sure dommandline tool works:
go run tscriptify/main.go -package github.com/GoodNotes/typescriptify-golang-structs/example/example-models -local-pkg -verbose -target tmp_classes.ts example/example-models/example_models.go
go run tscriptify/main.go -package github.com/GoodNotes/typescriptify-golang-structs/example/example-models -local-pkg -verbose -target tmp_interfaces.ts -interface example/example-models/example_models.go
go run tscriptify/main.go -package github.com/GoodNotes/typescriptify-golang-structs/example/example-models -local-pkg -verbose -target tmp_jsiiInterfaces.ts -readonly -all-optional -camel-case -interface CloudKitDev
go run tscriptify/main.go -package=github.com/aws/secrets-store-csi-driver-provider-aws/provider -local-pkg -verbose -target=tmp_jsiiSecretDescriptor.ts -interface -readonly -all-optional SecretDescriptor
.PHONY: lint
lint:
go vet ./...
-golangci-lint run
node_modules:
npm install