Skip to content

Commit

Permalink
chore: add husky hook for commitlint
Browse files Browse the repository at this point in the history
  • Loading branch information
cwillisf committed Dec 15, 2023
1 parent c9e4a96 commit 901ec69
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 72 deletions.
1 change: 1 addition & 0 deletions .husky/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text eol=lf
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx --no-install commitlint --edit "$1"
83 changes: 14 additions & 69 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
"deploy": "touch playground/.nojekyll && gh-pages -t -d playground -m \"Build for $(git log --pretty=format:%H -n1)\"",
"docs": "jsdoc -c .jsdoc.json",
"lint": "eslint .",
"prepare": "husky install",
"semantic-release": "semantic-release",
"start": "webpack-dev-server --output-library-target=umd2",
"test:ci:build": "babel --presets @babel/preset-env . --out-dir dist/test-tmp --only src,test,index.js --source-maps",
"test:ci:unit": "npm run test:ci:build && tap ./dist/test-tmp/test/unit",
Expand All @@ -26,8 +28,7 @@
"test:integration": "tap --node-arg=--require --node-arg=@babel/register ./test/integration",
"test:coverage": "tap --node-arg=--require --node-arg=@babel/register ./test/{unit,integration}/*.js --coverage --coverage-report=lcov",
"test": "npm run lint && npm run docs && npm run test:unit && npm run test:integration",
"watch": "webpack --progress --colors --watch",
"semantic-release": "semantic-release"
"watch": "webpack --progress --colors --watch"
},
"dependencies": {
"js-md5": "0.7.3",
Expand All @@ -50,7 +51,7 @@
"eslint-config-scratch": "5.1.0",
"gh-pages": "^1.2.0",
"html-webpack-plugin": "^3.2.0",
"husky": "0.14.3",
"husky": "8.0.3",
"jsdoc": "^3.6.2",
"json": "^9.0.4",
"semantic-release": "^15.13.1",
Expand Down

0 comments on commit 901ec69

Please sign in to comment.