Closed DervexDev closed 4 months ago
it may be useful once we start publishing databases to GitHub releases
I think that it is already pretty useful e.g. when including rbx_dom_lua
in other projects.
I slightly disagree with "not intended to be read by humans." We do want to diff and read the database with our eyes quite frequently (whenever we open PRs to update it)
Oh I thought that e.g. rbx_dom_lua
uses 100% auto generated database from rbx_reflector
, makes sense then.
some editors don't perform well on extremely long lines
That's good to now!
Oh I thought that e.g. rbx_dom_lua uses 100% auto generated database from rbx_reflector, makes sense then.
We do use rbx_reflector to generate the database in rbx_dom_lua - I'd just like to be able to easily see how the database has changed after an update. Pretty printed JSON diffs pretty well, but it's much harder to see what changed when it's all slammed into a single line. It's certainly possible to prettify it manually after the fact... but I'd rather not add another step 😄
This PR makes writing of database from
generate
subcommand in pretty-printed JSON optional by adding--pretty
option. I think that it makes sense as these files are not intended to be read by humans and it reduces the file size from1.6MB
to796KB
.