File tree 3 files changed +14
-3
lines changed
components/ide-metrics-api/typescript-grpcweb
3 files changed +14
-3
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
- # Copyright (c) 2020 Gitpod GmbH. All rights reserved.
2
+ # Copyright (c) 2022 Gitpod GmbH. All rights reserved.
3
3
# Licensed under the GNU Affero General Public License (AGPL).
4
4
# See License-AGPL.txt in the project root for license information.
5
5
6
+ ROOT_DIR=$( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd -P) /../../../
7
+
8
+ # include protoc bash functions
9
+ # shellcheck disable=SC1090,SC1091
10
+ source " $ROOT_DIR " /scripts/protoc-generator.sh
11
+
12
+ install_dependencies
13
+
6
14
DIR=$( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd -P)
7
15
8
16
THIRD_PARTY_INCLUDES=${PROTOLOC:- $DIR / ..}
@@ -16,6 +24,7 @@ mkdir -p lib
16
24
export PROTO_INCLUDE=" -I$THIRD_PARTY_INCLUDES /third_party -I /usr/lib/protoc/include"
17
25
18
26
protoc -I" $THIRD_PARTY_INCLUDES " /third_party -I/usr/lib/protoc/include \
27
+ --plugin=protoc-gen-grpc-web=/tmp/protoc-gen-grpc-web \
19
28
--js_out=import_style=commonjs:lib \
20
29
--grpc-web_out=import_style=commonjs+dts,mode=grpcweb:lib \
21
30
-I" ${PROTOLOC:- ..} " " ${PROTOLOC:- ..} " /* .proto
Original file line number Diff line number Diff line change 12
12
"grpc-web" : " ^1.3.1"
13
13
},
14
14
"devDependencies" : {
15
- "typescript" : " ~4.4.2" ,
16
- "protoc-gen-grpc-web" : " ~1.4.0"
15
+ "typescript" : " ~4.4.2"
17
16
}
18
17
}
Original file line number Diff line number Diff line change @@ -15,6 +15,9 @@ install_dependencies() {
15
15
16
16
curl -sSo /tmp/protoc-gen-grpc-java https://repo1.maven.org/maven2/io/grpc/protoc-gen-grpc-java/1.45.0/protoc-gen-grpc-java-1.45.0-linux-x86_64.exe
17
17
chmod +x /tmp/protoc-gen-grpc-java
18
+
19
+ curl -LsSo /tmp/protoc-gen-grpc-web https://github.com/grpc/grpc-web/releases/download/1.3.1/protoc-gen-grpc-web-1.3.1-linux-x86_64
20
+ chmod +x /tmp/protoc-gen-grpc-web
18
21
}
19
22
20
23
lint () {
You can’t perform that action at this time.
0 commit comments