Skip to content

Commit

Permalink
feat: test husky
Browse files Browse the repository at this point in the history
  • Loading branch information
tangxudong committed Apr 9, 2021
1 parent 942ddfc commit d19af6b
Show file tree
Hide file tree
Showing 6 changed files with 19,647 additions and 885 deletions.
1 change: 1 addition & 0 deletions .husky/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_
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"
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

# npm test
18,805 changes: 18,805 additions & 0 deletions package-lock.json

Large diffs are not rendered by default.

23 changes: 2 additions & 21 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,7 @@
"build:beta": "vite build --mode beta",
"build:release": "vite build --mode release",
"serve": "vite preview",
"lint-staged": "lint-staged"
},

"lint-staged": {
"*.{js, vue}": [
"prettier --write",
"eslint --cache --fix",
"git add"
]
},
"husky": {
"hooks": {
"pre-commit": "lint-staged",
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
},
"config": {
"commitizen": {
"path": "cz-customizable"
}
"prepare": "husky install"
},
"dependencies": {
"@vitejs/plugin-vue": "^1.1.5",
Expand Down Expand Up @@ -55,4 +36,4 @@
"> 1%",
"last 2 versions"
]
}
}
Loading

0 comments on commit d19af6b

Please sign in to comment.