Skip to content

Commit

Permalink
chore: replace commitizen with commitlint
Browse files Browse the repository at this point in the history
  • Loading branch information
mukuljainx committed Oct 25, 2021
1 parent 03b029c commit 51845ad
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 15 deletions.
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx --no-install commitlint --edit "$1"
6 changes: 0 additions & 6 deletions .husky/prepare-commit-msg

This file was deleted.

1 change: 1 addition & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = { extends: ['@commitlint/config-conventional'] };
14 changes: 5 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@
"deploy-storybook": "storybook-to-ghpages",
"setup-css-dev": "./scripts/setup-local-css.sh",
"pre-commit": "lint-staged",
"commit": "git cz",
"lint": "eslint ./core --ext .tsx,.ts",
"lint": "tslint -p tsconfig.json -c tslint.json 'core/**/*.{tx,tsx}'",
"prettier": "prettier --config ./.prettierrc --write 'core/**/*.{tx,tsx}'",
"prettier:check": "prettier --config ./.prettierrc --check 'core/**/*.ts{,x}'",
"build-css": "gulp --gulpfile css/gulpfile.js build",
Expand All @@ -31,7 +30,8 @@
"build": "npm run build-css && npm run build-js",
"version": "./scripts/version.sh",
"prepare": "husky install",
"generate-types": "node node_modules/.bin/dts-bundle-generator --config dts.config.js"
"generate-types": "node node_modules/.bin/dts-bundle-generator --config dts.config.js",
"commitmsg": "commitlint -e $GIT_PARAMS"
},
"author": "Innovaccer",
"license": "MIT",
Expand All @@ -41,6 +41,8 @@
"@babel/plugin-proposal-class-properties": "^7.8.3",
"@babel/preset-env": "^7.8.7",
"@babel/preset-typescript": "^7.8.3",
"@commitlint/cli": "^13.2.1",
"@commitlint/config-conventional": "^13.2.0",
"@rollup/plugin-alias": "^3.0.1",
"@rollup/plugin-commonjs": "^11.0.2",
"@rollup/plugin-json": "^4.0.2",
Expand Down Expand Up @@ -73,7 +75,6 @@
"babel-plugin-transform-object-rest-spread": "^6.26.0",
"brotli": "^1.3.2",
"chromatic": "^5.9.0",
"commitizen": "^4.2.4",
"concurrently": "^5.1.0",
"cz-conventional-changelog": "^3.3.0",
"dts-bundle-generator": "5.9.0",
Expand Down Expand Up @@ -140,10 +141,5 @@
"npm run prettier",
"npm run lint"
]
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
}
}

0 comments on commit 51845ad

Please sign in to comment.