[protobuf] Protobuf with JS

2017-07-10 Thread Dylan Taft
I'm having a heck of a time getting this to work. Let me back up, I _did_ get it to work, but I don't know if it was the right process. I am not using node.js or anything. The documentation https://github.com/google/protobuf/blob/master/js/README.md isn't super clear, it seems to assume familia

[protobuf] Re: Protobuf with JS

2017-07-10 Thread Dylan Taft
These files seem to be all that is required for closurebuilder.py to do it's thing. arith.js constants.js decoder.js encoder.js map.js message.js reader.js utils.js writer.js If there isn't a better way to do it - I can submit pull req to https://github.com/google/protobuf/blob/master/

[protobuf] Re: Protobuf with JS

2017-07-11 Thread Dylan Taft
I keep answering my own questions. https://developers.google.com/closure/library/docs/depswriter Closure doesn't handle dependency walking in the browser, you either compile your scripts for prod or build a dependency file which depswriter can help with. Perfect. I am going to digest this a bit