Skip to content
This repository has been archived by the owner on Feb 1, 2022. It is now read-only.

Commit

Permalink
feat(package.json): commitlint and husky
Browse files Browse the repository at this point in the history
added commitlint and husky to pre-commit and pre-push

Closes #13
  • Loading branch information
Edgar Ordóñez committed Dec 15, 2018
1 parent de302c1 commit 632473a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .commitlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": ["@commitlint/config-conventional"]
}
6 changes: 6 additions & 0 deletions .huskyrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"hooks": {
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
"pre-push": "yarn lint && yarn test"
}
}
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
"object-assign-deep": "^0.4.0"
},
"devDependencies": {
"@commitlint/cli": "^7.2.1",
"@commitlint/config-conventional": "^7.1.2",
"@stencil/core": "latest",
"@stencil/router": "^0.3.1",
"@stencil/sass": "^0.1.1",
Expand All @@ -41,6 +43,7 @@
"@types/puppeteer": "1.10.0",
"coveralls": "^3.0.2",
"cz-conventional-changelog": "^2.1.0",
"husky": "^1.2.0",
"jest": "^23.6.0",
"prettier": "^1.15.2",
"puppeteer": "1.8.0",
Expand Down

0 comments on commit 632473a

Please sign in to comment.