mirror of
https://github.com/anyproto/anytype-heart.git
synced 2025-06-10 01:51:07 +09:00
ts-protos
This commit is contained in:
parent
5881b79d1c
commit
1b33214149
2 changed files with 5 additions and 3 deletions
7
Makefile
7
Makefile
|
@ -18,7 +18,8 @@ ifndef $(GOROOT)
|
|||
endif
|
||||
|
||||
DEPS_PATH := $(shell pwd)/deps
|
||||
export PATH := $(DEPS_PATH):$(PATH)
|
||||
NPM_PATH := $(shell pwd)/node_modules/.bin
|
||||
export PATH := $(DEPS_PATH):$(NPM_PATH):$(PATH)
|
||||
|
||||
$(shell git config core.hooksPath .githooks)
|
||||
|
||||
|
@ -266,8 +267,8 @@ protos-swift-local: protos-swift
|
|||
|
||||
protos-js:
|
||||
@echo 'Generating protobuf packages (JS)...'
|
||||
@protoc -I ./ --js_out=import_style=commonjs,binary:./dist/js/pb pb/protos/service/*.proto pb/protos/*.proto pkg/lib/pb/model/protos/*.proto
|
||||
@protoc -I ./ --grpc-web_out=import_style=commonjs+dts,mode=grpcwebtext:./dist/js/pb pb/protos/service/*.proto pb/protos/*.proto pkg/lib/pb/model/protos/*.proto
|
||||
@protoc -I ./ --ts_out=./dist/js/pb pb/protos/service/*.proto pb/protos/*.proto pkg/lib/pb/model/protos/*.proto
|
||||
@protoc -I ./ --grpc-web_out=import_style=typescript,mode=grpcwebtext:./dist/js/pb pb/protos/service/*.proto pb/protos/*.proto pkg/lib/pb/model/protos/*.proto
|
||||
|
||||
protos-java:
|
||||
@echo 'Generating protobuf packages (Java)...'
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
"build:protos": "webpack -o ./build/web/commands-web.js ./build/web/pb/protos/service/service_grpc_web_pb.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@protobuf-ts/plugin": "^2.9.4",
|
||||
"google-protobuf": "~3.19.4",
|
||||
"grpc-web": "~1.3.1",
|
||||
"protobufjs": "~6.11.2"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue