Hallway-Inc / hallway-protobuffers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hallway Protobuffers

The protobufs only need to be recompiled when the avatar_message.proto file changes

Compiling the protocol buffer for typescript

  1. Install protoc (v3.19.1) on your system from here
  2. yarn install in the js folder and then change back to the root folder
  3. Run this command to build js/src/avatar-message.ts. DO NOT manually change js/src/avatar-message.ts
protoc --plugin=./js/node_modules/.bin/protoc-gen-ts_proto --ts_proto_out=./js/src ./hallway_avatar_message.proto --ts_proto_opt=esModuleInterop=true --ts_proto_opt=snakeToCamel=false

Compiling c++ and c# protobufs

  1. Configure bazel on your system
python build.py

Resultant protobuf files will be copied to the cpp and cs folders respectively

About


Languages

Language:C# 71.9%Language:TypeScript 23.4%Language:JavaScript 1.4%Language:Starlark 1.3%Language:Python 1.0%Language:CMake 1.0%