ethpm / ethpm-spec

Ethereum Package Manager http://ethpm.github.io/ethpm-spec/
165 stars 30 forks source link

Document keeping strict example manifests in sync with pretty versions #129

Open gnidan opened 6 years ago

gnidan commented 6 years ago

Since both are in this repo, any change to the pretty versions must be reflected in the corresponding minified versions.

Most recently, I used the following command to do this in batch:

ls examples | xargs -I {} sh -c "jq --sort-keys --indent 0 --join-output < ./examples/{}/1.0.0-pretty.json > ./examples/{}/1.0.0.json"

This uses the jq program, so maybe we want another method? Either way, this should be more easily accessible for future maintenance.

pipermerriam commented 6 years ago

That looks like something that would go well in a Makefile. (make sure it's portable and works on at least OSX/linux.