File tree 2 files changed +17
-6
lines changed
supervisor-api/typescript-grpcweb
2 files changed +17
-6
lines changed Original file line number Diff line number Diff line change @@ -93,14 +93,24 @@ scripts:
93
93
srcs :
94
94
- components/**/*
95
95
script : |
96
- COMPONENTS =( content-service-api image-builder-api registry-facade-api supervisor-api ws-daemon-api ws-manager-api ws-manager-bridge-api )
96
+ GO_COMPONENTS =( content-service-api image-builder-api registry-facade-api supervisor-api ws-daemon-api ws-manager-api ws-manager-bridge-api )
97
97
98
- for COMPONENT in "${COMPONENTS [@]}";do
98
+ for COMPONENT in "${GO_COMPONENTS [@]}";do
99
99
echo "Generating code for component $COMPONENT..."
100
100
pushd $COMPONENT > /dev/null
101
101
./generate.sh
102
102
popd > /dev/null
103
103
done
104
+
105
+ WEB_COMPONENTS=( supervisor-api/typescript-grpc supervisor-api/typescript-rest supervisor-api/typescript-grpcweb )
106
+ for COMPONENT in "${WEB_COMPONENTS[@]}";do
107
+ echo "Generating code for component $COMPONENT..."
108
+ pushd $COMPONENT > /dev/null
109
+ yarn install
110
+ ./build.sh
111
+ popd > /dev/null
112
+ done
113
+
104
114
- name : update-go-modules
105
115
srcs :
106
116
- components/**/*
Original file line number Diff line number Diff line change 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
+ DIR=$( cd $( dirname " ${BASH_SOURCE} " ) && pwd -P)
6
7
7
- THIRD_PARTY_INCLUDES=${PROTOLOC:- ..}
8
+ THIRD_PARTY_INCLUDES=${PROTOLOC:- $DIR / ..}
8
9
if [ ! -d $THIRD_PARTY_INCLUDES /third_party/google/api ]; then
9
10
echo " missing $THIRD_PARTY_INCLUDES /third_party/google/api"
10
11
exit -1
@@ -15,7 +16,7 @@ mkdir -p lib
15
16
export PROTO_INCLUDE=" -I$THIRD_PARTY_INCLUDES /third_party -I /usr/lib/protoc/include"
16
17
17
18
protoc $PROTO_INCLUDE \
18
- --plugin=" protoc-gen-ts=` which protoc-gen-ts` " \
19
+ --plugin=" protoc-gen-ts=$DIR /node_modules/.bin/ protoc-gen-ts" \
19
20
--js_out=" import_style=commonjs,binary:lib" \
20
- --ts_out=" grpc_js, service=grpc-web:lib" \
21
- -I${PROTOLOC:- ..} ${PROTOLOC:- ..} /* .proto
21
+ --ts_out=" service=grpc-web:lib" \
22
+ -I${PROTOLOC:- ..} ${PROTOLOC:- ..} /* .proto
You can’t perform that action at this time.
0 commit comments