Home > Enterprise >  Correct commit type for installing a dev dependency
Correct commit type for installing a dev dependency

Time:12-24

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?

CodePudding user response:

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.

  • Related