beamable / BeamableProduct

The beamable product suite including com.beamable, com.beamable.server, microservice base image, portal, the installer, and build scripts
Other
5 stars 0 forks source link

CLI - pretty-print JSON files #3347

Open cdhanna opened 4 months ago

cdhanna commented 4 months ago

The beam tool generates several different json config files, but it doesn't pretty-print them on disk. It isn't a good sign, but sometimes these files need manual intervention by a developer, and that process is exacerbated by the fact the json is minified by default.

There isn't a "good" reason not to pretty-print these files all the time from the CLI.

allister-beamable commented 4 months ago

This would be very helpful for editing those JSON files with vim or any line-oriented editor, really. JSON is already such a byte-inefficient format that adding whitespace shouldn't be a performance concern.

cdhanna commented 2 months ago

this is already done in 2.0; can backport to 1.19.x

cdhanna commented 2 months ago

https://github.com/beamable/BeamableProduct/pull/3467