Skip to content

alessandrotraversi-hotmart/betterCommit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Better Commit

Cross env commit conventions flow

Dependencies:

Global dependency: commitlint Project dependency: husky, commitizen

Project setup

Start git

git init

Install commitlint globaly

npm install -g @commitlint/cli @commitlint/config-conventional

Install husky and commitizen on your project as a dev dependencies

npm install -D husky commitizen

Start husky

npx husky install

Setting husky to use linter

npx husky add .husky/commit-msg \"npx --no -- commitlint --edit '$1'\"

Start commitizen

npx commitizen init cz-conventional-changelog --yarn --dev --exact

Setting husky to use commitizen

npx husky add .husky/prepare-commit-msg "exec < /dev/tty && node_modules/.bin/cz --hook || true"

Running commit flow

git commit

About

Commit best pratice: cross env commit conventions flow

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published