[TS] Add bazel rule for typescript codegen
jkuszmaul opened this issue · comments
James Kuszmaul commented
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 :(.
James Kuszmaul commented
Got a messy version with the necessary components at 2e1e813