Skip to content

Commit

Permalink
ci: add support to Conventional Commits automatically with Commitzen
Browse files Browse the repository at this point in the history
Because will make easier ensure that all commits are being done thinking in Semantic Release

skynexui#22
  • Loading branch information
elvinciqueira committed Sep 6, 2021
1 parent 14471c2 commit fd07dd1
Show file tree
Hide file tree
Showing 3 changed files with 410 additions and 14 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Expand Up @@ -124,3 +124,6 @@ dist
dist-web/
dist-native/
examples/yarn.lock

# Husky
.husky/
16 changes: 15 additions & 1 deletion package.json
Expand Up @@ -14,7 +14,14 @@
"release": "semantic-release",
"scripts": "node -r esm",
"postversion": "cd ../ && yarn scripts ./scripts/release/postVersionBump.js",
"test:babel": "cd ./packages/babel-plugin-skynexui && yarn jest -u --watch"
"test:babel": "cd ./packages/babel-plugin-skynexui && yarn jest -u --watch",
"cm": "cz",
"prepare": "husky install"
},
"husky": {
"hooks": {
"prepare-commit-msg": "exec < /dev/tty && git cz --hook || true"
}
},
"peerDependencies": {
"expo": "42.0.0",
Expand Down Expand Up @@ -42,8 +49,10 @@
"@types/styled-components-react-native": "5.1.1",
"babel-plugin-styled-components": "^1.13.2",
"chalk": "^4.1.2",
"cz-conventional-changelog": "3.3.0",
"esbuild": "^0.12.24",
"esm": "^3.2.25",
"husky": "^7.0.2",
"rollup": "2.56.3",
"rollup-plugin-dts": "^4.0.0",
"rollup-plugin-esbuild": "^4.5.0",
Expand Down Expand Up @@ -87,5 +96,10 @@
},
"main"
]
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
}
}

0 comments on commit fd07dd1

Please sign in to comment.