transtProto2Ts.bat 468 B

1234567
  1. set PROTO_DIR=D:\b22_proto
  2. set OUTPUT_DIR=D:\b22_client\assets\script\proto
  3. call git --git-dir=%PROTO_DIR%\.git --work-tree=%PROTO_DIR% pull
  4. call node_modules\.bin\pbjs -t static-module -w es6 -o .\assets\script\proto\protores.js %PROTO_DIR%\*.proto
  5. call protoc -I D:\b22_proto --plugin=protoc-gen-ts_proto=.\\node_modules\\.bin\\protoc-gen-ts_proto.cmd --ts_proto_out=%OUTPUT_DIR% game.proto msg_cmd.proto typedef.proto --ts_proto_opt=outputEncodeMethods=false
  6. pause