You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Dockerfile
+6-1Lines changed: 6 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,7 @@ ARG node_version
9
9
ARG node_grpc_tools_node_protoc_ts_version
10
10
ARG node_grpc_tools_version
11
11
ARG node_protoc_gen_grpc_web_version
12
+
ARG ts_proto_version
12
13
ARG go_envoyproxy_pgv_version
13
14
ARG go_mwitkow_gpv_version
14
15
@@ -133,6 +134,7 @@ ARG node_version
133
134
ARG node_grpc_tools_node_protoc_ts_version
134
135
ARG node_grpc_tools_version
135
136
ARG node_protoc_gen_grpc_web_version
137
+
ARG ts_proto_version
136
138
137
139
ARG go_envoyproxy_pgv_version
138
140
ARG go_mwitkow_gpv_version
@@ -153,10 +155,13 @@ RUN set -ex && apt-get update && apt-get install -y --no-install-recommends \
153
155
RUN curl -fsSL "https://deb.nodesource.com/setup_${node_version}.x" | bash -
154
156
RUN apt-get install -y nodejs
155
157
156
-
# Add TypeScript support
158
+
# Add Node TypeScript support
157
159
RUN npm config set unsafe-perm true
158
160
RUN npm i -g grpc_tools_node_protoc_ts@$node_grpc_tools_node_protoc_ts_version grpc-tools@$node_grpc_tools_version protoc-gen-grpc-web@$node_protoc_gen_grpc_web_version
Copy file name to clipboardExpand all lines: all/entrypoint.sh
+27-12Lines changed: 27 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -39,6 +39,7 @@ printUsage() {
39
39
echo" --js-out This option overrides the 'js_out=' argument in the grpc-node and grpc-web code generation. Defaults to 'import_style=commonjs'."
40
40
echo" --grpc-out This option allows overriding the left-half of the 'grpc_out=' argument (before the colon) with grpc-node and grpc-web code generation. Options are: generate_package_definition, grpc_js or grpc(depricated from April 2021). Defaults to grpc_js."
41
41
echo" --grpc-web-out This option overrides the 'grpc-web_out=' argument in the grpc-web code generation. Defaults to 'import_style=typescript'."
42
+
echo" --ts_opt The options to pass to protoc to customize the typescript code generation. See https://github.com/stephenh/ts-proto#supported-options. --ts_opt useOptionals=messages will evaluate to --ts_proto_opt=useOptionals=messages"
0 commit comments