Skip to content

Commit

Permalink
chore(client): enable generate for go and node
Browse files Browse the repository at this point in the history
  • Loading branch information
hekike committed Nov 6, 2024
1 parent e87f3cb commit ec086a5
Show file tree
Hide file tree
Showing 3 changed files with 529 additions and 362 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ update-openapi-cloud: ## Update OpenAPI spec
.PHONY: gen-api
gen-api: ## Generate API and SDKs
$(call print-target)
go generate ./api/...
# dagger call generate node-sdk -o api/client/node
# dagger call generate web-sdk -o api/client/web
# dagger call generate python-sdk -o api/client/python
$(MAKE) update-openapi-cloud
dagger call generate node-sdk -o api/client/node
# dagger call generate web-sdk -o api/client/web
# dagger call generate python-sdk -o api/client/python

.PHONY: migrate-check
migrate-check: ## Validate migrations
Expand Down
2 changes: 1 addition & 1 deletion api/client/node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"lint": "eslint . --ext .ts --format=pretty",
"format": "prettier --write .",
"build": "duel",
"generate": "rimraf ./schemas && openapi-typescript '../../openapi.yaml' --output schemas/openapi.ts && prettier --write schemas/",
"generate": "rimraf ./schemas && openapi-typescript '../../openapi.cloud.yaml' --output schemas/openapi.ts && prettier --write schemas/",
"pretest": "pnpm run build",
"test": "vitest --run",
"test:watch": "vitest --watch",
Expand Down
Loading

0 comments on commit ec086a5

Please sign in to comment.