Open localheinz opened 6 years ago
@localheinz Have a look on command rebase-doc-templates
in that repository. We are doing there something similar, but a bit different. We are conforming composer.json
with the template. As I can see your tool is doing a bit more. What I don't like is the order of sections. For example we have all supports links at the bottom of the composer.json file, here, we have it in our order as it is in the template.
@webimpress
Thank you!
localheinz/composer-normalize
reorders sections as they appear in the underlying schema at https://getcomposer.org/schema.json as this is easier as having an opinion about the order of sections, and when a section allows additional properties, they will be found at the end of that section.
Unsure if this is good, but after I opened https://github.com/zendframework/zend-inputfilter/pull/165, @froschdesign suggested in https://github.com/zendframework/zend-inputfilter/pull/165#issuecomment-381826008 I suggest
localheinz/composer-normalize
here.Maybe it is useful to keep
composer.json
consistently formatted and structured across component packages?