feat: husky忽略文件修改
This commit is contained in:
parent
66f7c58ed4
commit
6a3e34538a
0
.husky/_/.gitignore
vendored
Normal file
0
.husky/_/.gitignore
vendored
Normal file
2
.husky/_/applypatch-msg
Normal file
2
.husky/_/applypatch-msg
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
#!/usr/bin/env sh
|
||||||
|
. "${0%/*}/h"
|
||||||
4
.husky/_/commit-msg
Normal file
4
.husky/_/commit-msg
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
#!/usr/bin/env sh
|
||||||
|
. "$(dirname -- "$0")/husky.sh"
|
||||||
|
|
||||||
|
npx --no-install commitlint --edit $1
|
||||||
20
.husky/_/h
Normal file
20
.husky/_/h
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
#!/usr/bin/env sh
|
||||||
|
[ "$HUSKY" = "2" ] && set -x
|
||||||
|
h="${0##*/}"
|
||||||
|
s="${0%/*/*}/$h"
|
||||||
|
|
||||||
|
[ ! -f "$s" ] && exit 0
|
||||||
|
|
||||||
|
for f in "${XDG_CONFIG_HOME:-$HOME/.config}/husky/init.sh" "$HOME/.huskyrc"; do
|
||||||
|
# shellcheck disable=SC1090
|
||||||
|
[ -f "$f" ] && . "$f"
|
||||||
|
done
|
||||||
|
|
||||||
|
[ "${HUSKY-}" = "0" ] && exit 0
|
||||||
|
|
||||||
|
sh -e "$s" "$@"
|
||||||
|
c=$?
|
||||||
|
|
||||||
|
[ $c != 0 ] && echo "husky - $h script failed (code $c)"
|
||||||
|
[ $c = 127 ] && echo "husky - command not found in PATH=$PATH"
|
||||||
|
exit $c
|
||||||
0
.husky/_/husky.sh
Normal file
0
.husky/_/husky.sh
Normal file
2
.husky/_/post-applypatch
Normal file
2
.husky/_/post-applypatch
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
#!/usr/bin/env sh
|
||||||
|
. "${0%/*}/h"
|
||||||
2
.husky/_/post-checkout
Normal file
2
.husky/_/post-checkout
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
#!/usr/bin/env sh
|
||||||
|
. "${0%/*}/h"
|
||||||
2
.husky/_/post-commit
Normal file
2
.husky/_/post-commit
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
#!/usr/bin/env sh
|
||||||
|
. "${0%/*}/h"
|
||||||
2
.husky/_/post-merge
Normal file
2
.husky/_/post-merge
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
#!/usr/bin/env sh
|
||||||
|
. "${0%/*}/h"
|
||||||
2
.husky/_/post-rewrite
Normal file
2
.husky/_/post-rewrite
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
#!/usr/bin/env sh
|
||||||
|
. "${0%/*}/h"
|
||||||
2
.husky/_/pre-applypatch
Normal file
2
.husky/_/pre-applypatch
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
#!/usr/bin/env sh
|
||||||
|
. "${0%/*}/h"
|
||||||
2
.husky/_/pre-auto-gc
Normal file
2
.husky/_/pre-auto-gc
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
#!/usr/bin/env sh
|
||||||
|
. "${0%/*}/h"
|
||||||
4
.husky/_/pre-commit
Normal file
4
.husky/_/pre-commit
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
#!/usr/bin/env sh
|
||||||
|
. "$(dirname "$0")/husky.sh"
|
||||||
|
|
||||||
|
npm run lint-staged
|
||||||
2
.husky/_/pre-push
Normal file
2
.husky/_/pre-push
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
#!/usr/bin/env sh
|
||||||
|
. "${0%/*}/h"
|
||||||
2
.husky/_/pre-rebase
Normal file
2
.husky/_/pre-rebase
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
#!/usr/bin/env sh
|
||||||
|
. "${0%/*}/h"
|
||||||
2
.husky/_/prepare-commit-msg
Normal file
2
.husky/_/prepare-commit-msg
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
#!/usr/bin/env sh
|
||||||
|
. "${0%/*}/h"
|
||||||
Loading…
x
Reference in New Issue
Block a user