In this exercise, Kent installs the commitizen, cz-conventional-changelog, and validate-commit-msg Node modules. These modules will not only streamline the authoring of commit messages and change logs, but validate the commit messages are formatted properly. Code for this exercise can be found on the FEM/09.3-commit-message branch.
(haunting music)…- I'll just show you,…we're going to be adding a new script.…I'll explain what that script does.…We're adding a couple dependencies,…commitizen is the tool that will help us generate this.…And this is the,…like, a plugin for the tool…that will tell commitizen what questions to ask us…and what to do with the answers.…Then validate-commit-message from yours truly…is going to valid that our commit messages follow the format,…and we'll add that as a git hook.…
So, let's go ahead and do those things.…So we're going to npm install…and you'll actually want to run this…as a dev dependency commitizen…and conventional-changelog,…or sorry, it's cz-conventional-changelog.…And then also, validate-commit-msg, message.…Do, do, do.…
Boy, somebody needs to update minimatch.…Okay, sweet, so with those changes…we can see in our package.json we have commitizen,…cz-conventional-changelog, and validate-commit-message.…Then the first thing that we're going to do,…because it's the easiest and most straightforward…is we're going to add a git hook right here,…
Note: This course was created by Frontend Masters. It was originally released on 08/09/2016. We're pleased to host this training in our library.
- Creating an open-source library
- Linting and testing
- Code coverage
- Installing and configuring Babel
- Peer dependencies
- Forking and renaming
- Continuous integration and automating releases
Skill Level Intermediate
1. Creating an Open-Source Library
2. Linting and Testing
3. Git Hooks, Babel, and Webpack
4. Continuous Integration and Automating Releases
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.