Skip to content
This repository has been archived by the owner on Jan 16, 2020. It is now read-only.

Enhancement: Normalize composer.json #49

Open
localheinz opened this issue Apr 17, 2018 · 2 comments
Open

Enhancement: Normalize composer.json #49

localheinz opened this issue Apr 17, 2018 · 2 comments

Comments

@localheinz
Copy link
Member

Unsure if this is good, but after I opened zendframework/zend-inputfilter#165, @froschdesign suggested in zendframework/zend-inputfilter#165 (comment) I suggest localheinz/composer-normalize here.

Maybe it is useful to keep composer.json consistently formatted and structured across component packages?

@michalbundyra
Copy link
Member

@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.

@localheinz
Copy link
Member Author

@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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants