Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

commitlint, husky, commitzen

# https://dev.to/vitordevsp/padronizacao-de-commit-com-commitlint-husky-e-commitizen-3g1n

# add commitlint
yarn add @commitlint/config-conventional @commitlint/cli -D

echo "module.exports = { extends: ['@commitlint/config-conventional'] };" > commitlint.config.js


# add husky
yarn add husky -D

yarn husky install

# add below to package.json
# "scripts": {
#   "prepare": "husky install"
# }

yarn husky add .husky/commit-msg 'yarn commitlint --edit $1'


# add commitzen
yarn add commitizen -D

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

# add below to package.json
# use `yarn commit` instead of `git commit`
# "scripts": {
#   "commit": "git-cz"
# }
Comment

PREVIOUS NEXT
Code Example
Shell :: ls bs date 
Shell :: uniq bash 
Shell :: remove docker machine 
Shell :: install packages from pipfile 
Shell :: Recover accidentally deleted files by git reset hard 
Shell :: find change permissions to subdirectories 
Shell :: command line remove directory and contents 
Shell :: diff specific file git different branches 
Shell :: clone specific branch git 
Shell :: git grep in commits 
Shell :: no matching manifest for linux/arm64/v8 in the manifest list entries 
Shell :: install unrar linux 
Shell :: find exclude specific file 
Shell :: uptime linux 
Shell :: pgadmin4 on docker 
Shell :: kill running port in ubuntu using procees id 
Shell :: linux install requirements.txt 
Shell :: how to install react spring with typescript 
Shell :: import external python modules in blender 
Shell :: curl install docker-compose linux 
Shell :: line number in nano editor 
Shell :: root folders via gui ubuntu 
Shell :: vim replace multiple lines 
Shell :: git commit messages 
Shell :: icon theme and widget ubuntu 
Shell :: how to fast forward git 
Shell :: store result of command in variable bash 
Shell :: dotnet format install 
Shell :: docker disable auto start 
Shell :: how to remove a package from arch linux 
ADD CONTENT
Topic
Content
Source link
Name
8+7 =