18 lines
477 B
Bash
Executable File
18 lines
477 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -eu
|
|
|
|
TARGET_DIR=$1
|
|
|
|
./node_modules/.bin/grpc_tools_node_protoc \
|
|
--js_out=import_style=commonjs,binary:${TARGET_DIR} \
|
|
--grpc_out=${TARGET_DIR} \
|
|
--plugin=protoc-gen-grpc=./node_modules/.bin/grpc_tools_node_protoc_plugin \
|
|
-I ${TARGET_DIR} \
|
|
${TARGET_DIR}/*.proto
|
|
|
|
./node_modules/.bin/grpc_tools_node_protoc \
|
|
--plugin=protoc-gen-ts=./node_modules/.bin/protoc-gen-ts \
|
|
--ts_out=${TARGET_DIR} \
|
|
-I ${TARGET_DIR} \
|
|
${TARGET_DIR}/*.proto |