google / flatbuffers

FlatBuffers: Memory Efficient Serialization Library

Home Page:https://flatbuffers.dev/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[TS] Add bazel rule for typescript codegen

jkuszmaul opened this issue · comments

Just documenting something I am working on in the background currently...

Add a flatbuffer_ts_library bazel rule for generating typescript code. Note that because bazel needs to statically know what files will be generated by the flatbuffer compiler, I intend to also modify the typescript codegen to have an option to generate a single output file (like how, e.g., C++ does it). The alternative would be requiring users of the typescript rules to list out all the flatbuffer types declared by the schema in the bazel rule :(.

Got a messy version with the necessary components at 2e1e813