Skip to content

Commit

Permalink
chore(commits): optimzing development workflow by adding commitzen an…
Browse files Browse the repository at this point in the history
…d husky to have a unified commits and have a nice changelog
  • Loading branch information
Aazme committed Mar 18, 2024
1 parent ecd8664 commit 9b70cad
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .cz.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"path": "cz-conventional-changelog"
}

3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.env
node_modules
*.log
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npm run commit
14 changes: 13 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,17 @@
"version": "1.0.0",
"description": "",
"main": "index.js",
"husky": {
"hooks": {
"pre-commit": "npm run commit"
}
},
"scripts": {
"start": "node index.js",
"seed": "node seed.js",
"dev": "nodemon index.js"
"dev": "nodemon index.js",
"commit": "git-cz",
"prepare": "husky"
},
"author": "",
"license": "ISC",
Expand All @@ -19,5 +26,10 @@
"swagger-jsdoc": "^6.2.8",
"swagger-ui-express": "^5.0.0",
"winston": "^3.12.0"
},
"devDependencies": {
"commitizen": "^4.3.0",
"cz-conventional-changelog": "^3.3.0",
"husky": "^9.0.11"
}
}

0 comments on commit 9b70cad

Please sign in to comment.