-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (23 loc) · 728 Bytes
/
Makefile
File metadata and controls
28 lines (23 loc) · 728 Bytes
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
27
28
update-api-spec:
@echo "Updating API spec"
@./scripts/update-api-spec.sh
@echo "Done"
.PHONY: codegen
codegen:
@echo "Generating SDK code from openapi and envd spec"
@./scripts/codegen.sh
generate: generate-js generate-python
generate-js:
cd packages/js-sdk && pnpm generate
cd packages/js-sdk && pnpm generate-envd-api
cd spec/envd && buf generate --template buf-js.gen.yaml
generate-python:
if [ ! -f "/go/bin/protoc-gen-connect-python" ]; then \
$(MAKE) -C packages/connect-python build; \
fi
cd packages/python-sdk && make generate-api
cd spec/envd && buf generate --template buf-python.gen.yaml
cd packages/python-sdk && ./scripts/fix-python-pb.sh && black .
.PHONY: init-styles
init-styles:
vale sync