Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Correct commit type for installing a dev dependency

I’m trying to get started using semantic commit messages according to the Angular convention https://github.com/angular/angular/blob/22b96b9/CONTRIBUTING.md#-commit-message-guidelines
https://docs.google.com/document/d/1QrDFcIiPjSLDn3EL15IJygNPiHORgU1_OOAqWjiDU5Y/edit#

But still can’t find the right commit type when installing a new dependency in my project. In the end, it should end up like <commit type>: install storybook. What type should I use?

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

Since this commit changes the dependencies, the build type seems to be the most appropriate type.

Having said that, a commit that just adds a dependency without doing anything with it doesn’t sound like a good idea, as it’s not an atomic improvement to the codebase. In fact, that single commit worsens the codebase by adding an unused dependency. Instead, I’d create a larger commit that introduces the dependency and does something meaningful with it, meaning it will probably be a feat commit.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading