This repository has been archived by the owner on Dec 2, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add generated grpc protos for ml_metadata
* Uses the version from Pipelines
- Loading branch information
Showing
11 changed files
with
26,492 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/usr/bin/env bash | ||
PROTOC_GEN_TS_PATH="./node_modules/.bin/protoc-gen-ts" | ||
OUT_DIR="./src/generated" | ||
|
||
if [[ ! -d ${OUT_DIR} ]]; then | ||
mkdir ${OUT_DIR} | ||
fi | ||
|
||
# Expects protoc to be on your PATH. | ||
# | ||
# From npm/google-protobuf: | ||
# The compiler is not currently available via npm, but you can download a | ||
# pre-built binary on GitHub (look for the protoc-*.zip files under Downloads). | ||
protoc \ | ||
--plugin="protoc-gen-ts=${PROTOC_GEN_TS_PATH}" \ | ||
--js_out="import_style=commonjs,binary:${OUT_DIR}" \ | ||
--ts_out="service=grpc-web:${OUT_DIR}" \ | ||
src/apis/**/*.proto |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.