Mercurial > hg > orthanc-stone
diff Resources/CommandTool/protoc-tests/basic_ts_test.ps1 @ 445:ee41b6a017d7 bgo-commands-codegen
dumb change
author | bgo-osimis |
---|---|
date | Wed, 16 Jan 2019 16:24:45 +0100 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Resources/CommandTool/protoc-tests/basic_ts_test.ps1 Wed Jan 16 16:24:45 2019 +0100 @@ -0,0 +1,18 @@ +# Path to this plugin + +# Under Linux +# $PROTOC_GEN_TS_PATH="$PSScriptRoot/node_modules/.bin/protoc-gen-ts" + +# Under Windows +$PROTOC_GEN_TS_PATH="$PSScriptRoot/node_modules/.bin/protoc-gen-ts.cmd" + +# Directory to write generated code to (.js and .d.ts files) +$OUT_DIR="./generated_ts" + +protoc ` + --plugin="protoc-gen-ts=$PROTOC_GEN_TS_PATH" ` + --js_out="import_style=commonjs,binary:$OUT_DIR" ` + --ts_out="$OUT_DIR" ` + basic.proto + +