diff options
-rw-r--r-- | api/Makefile | 7 | ||||
-rw-r--r-- | api/buf.gen.js.yaml | 10 | ||||
-rw-r--r-- | api/buf.gen.yaml | 2 |
3 files changed, 15 insertions, 4 deletions
diff --git a/api/Makefile b/api/Makefile index 04e9509..81f3748 100644 --- a/api/Makefile +++ b/api/Makefile @@ -5,7 +5,7 @@ GEN_DIR = gen BUF = buf # Targets -.PHONY: all lint generate clean +.PHONY: all lint generate generate-js clean all: lint generate @@ -13,7 +13,10 @@ lint: $(BUF) lint generate: - $(BUF) generate + $(BUF) generate --template buf.gen.yaml + +generate-js: + $(BUF) generate --template buf.gen.js.yaml --include-imports clean: rm -rf $(GEN_DIR) diff --git a/api/buf.gen.js.yaml b/api/buf.gen.js.yaml new file mode 100644 index 0000000..5c4767a --- /dev/null +++ b/api/buf.gen.js.yaml @@ -0,0 +1,10 @@ +version: v2 +managed: + enabled: true +plugins: + - remote: buf.build/bufbuild/es:v1.10.0 + out: gen + - remote: buf.build/connectrpc/es:v1.4.0 + out: gen +inputs: + - directory: proto diff --git a/api/buf.gen.yaml b/api/buf.gen.yaml index 6a08e5d..7713112 100644 --- a/api/buf.gen.yaml +++ b/api/buf.gen.yaml @@ -14,7 +14,5 @@ plugins: out: gen opt: - paths=source_relative - - remote: buf.build/bufbuild/es:v2.0.0 - out: gen inputs: - directory: proto |