Skip to content

Commit

Permalink
feat: commit-msg
Browse files Browse the repository at this point in the history
  • Loading branch information
AbigailDeng authored and AbigailDeng committed Apr 23, 2023
1 parent 121c1ae commit ee9c6e1
Show file tree
Hide file tree
Showing 5 changed files with 695 additions and 1,774 deletions.
3 changes: 3 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
HUSKY_GIT_PARAMS=$1 node scripts/verify-commit-msg.js
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

yarn run pre-commit
26 changes: 10 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,15 @@
"lint": "eslint src",
"proto": "node scripts/compile-proto.js",
"release": "standard-version -a",
"pre-commit": "lint-staged && istanbul-badges-readme && git add 'README.md'",
"test": "yarn test:node && yarn test:browser",
"test:browser": "jest --config=jest.browser.config.js",
"test:browser:watch": "jest --config=jest.browser.config.js --watch",
"test:node": "jest --config=jest.node.config.js",
"test:node:watch": "jest --config=jest.node.config.js --watch",
"test:coverage": "jest --config=jest.browser.config.js --coverage",
"test:coverageNode": "jest --config=jest.node.config.js --coverage"
"test:coverageNode": "jest --config=jest.node.config.js --coverage",
"prepare": "husky install"
},
"keywords": [
"aelf-web3"
Expand Down Expand Up @@ -76,7 +78,7 @@
"@types/hdkey": "^2.0.1",
"babel-loader": "^8.0.6",
"bundle-analyzer": "^0.0.6",
"chalk": "^5.2.0",
"chalk": "^4.1.2",
"commitizen": "^4.3.0",
"core-js": "^3.30.1",
"cross-env": "^7.0.3",
Expand All @@ -86,28 +88,20 @@
"eslint-plugin-import": "^2.27.5",
"git-cz": "^4.9.0",
"glob": "^10.2.2",
"husky": "^5",
"husky": "^8.0.0",
"istanbul-badges-readme": "^1.8.5",
"jest": "^29.4.1",
"jest-environment-jsdom": "^29.4.3",
"jest-environment-jsdom-fifteen": "^1.0.2",
"jest": "^29.5.0",
"jest-environment-jsdom": "^29.5.0",
"jest-github-reporter": "^1.1.1",
"lint-staged": "^9.0.2",
"rimraf": "^2.6.3",
"size-limit": "^8.1.2",
"standard-version": "^9.1.1",
"lint-staged": "^13.2.1",
"rimraf": "^5.0.0",
"standard-version": "^9.5.0",
"unused-files-webpack-plugin": "^3.4.0",
"webpack": "^4.35.2",
"webpack-bundle-analyzer": "^3.3.2",
"webpack-cli": "^3.3.5",
"webpack-merge": "^4.2.1"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged && yarn run test:coverage && istanbul-badges-readme && git add 'README.md'",
"commit-msg": "node scripts/verify-commit-msg.js"
}
},
"lint-staged": {
"*.js": "eslint"
},
Expand Down
2 changes: 0 additions & 2 deletions src/test.js

This file was deleted.

Loading

0 comments on commit ee9c6e1

Please sign in to comment.