Hey nerdy Beeminder fans, we (mostly @saranli) are trying to make sure all the Beebrain code – github.com/beeminder/road – is nice and maintainable and we’re thinking about modules and bundling and Typescript and such. But it’s quite a wild-west out there! Makes us inclined to stick to vanilla JS as we’ve been doing so far.
Status quo is we have six modules – butil, broad, beebrain, bgraph, bsandbox, btest – all implemented as UMD modules, more or less, at the moment.
Here’s a potential wishlist:
- Migrate these to Typescript
- Have a simple means of transpiling these to a browser bundle (probably browserify and tsify?)
- Have a simple means of transpiling to modules easily loadable from node.js for server-side tooling
- Be able to use jsdoc (or typedoc?) for clean and easy-to-navigate source documentation
Do you have opinions or guidance on such things? Let’s talk!