angus-c / just

A library of dependency-free JavaScript utilities that do just one thing.
https://anguscroll.com/just
MIT License
6k stars 208 forks source link

Use yaml for package data instead of json #569

Open uncenter opened 11 months ago

uncenter commented 11 months ago

This is a continuation of sorts of #567 - I noticed a lot of issues in the md-variables.json file probably arose due to how difficult it was to edit arrays of strings! YAML isn't everyone's favorite, but I think it really shines here with the multiline strings. This PR converts the md-variables.json file to YAML, including my typo fixes from #567, and updates the scripts/generate-readmes.js script accordingly to parse the YAML.

uncenter commented 11 months ago

You can see the changes made in this PR by cloning this branch locally and running yarn generate-readmes. The only changes are intentional punctuation changes - there are no changes due to changing the data format.