Skip to content

Commit 601fee8

Browse files
committed
Added husky as dev dependency
1 parent a94491e commit 601fee8

19 files changed

+93
-2
lines changed

.husky/_/applypatch-msg

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname "$0")/h"

.husky/_/commit-msg

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname "$0")/h"

.husky/_/h

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/usr/bin/env sh
2+
[ "$HUSKY" = "2" ] && set -x
3+
n=$(basename "$0")
4+
s=$(dirname "$(dirname "$0")")/$n
5+
6+
[ ! -f "$s" ] && exit 0
7+
8+
if [ -f "$HOME/.huskyrc" ]; then
9+
echo "husky - '~/.huskyrc' is DEPRECATED, please move your code to ~/.config/husky/init.sh"
10+
fi
11+
i="${XDG_CONFIG_HOME:-$HOME/.config}/husky/init.sh"
12+
[ -f "$i" ] && . "$i"
13+
14+
[ "${HUSKY-}" = "0" ] && exit 0
15+
16+
export PATH="node_modules/.bin:$PATH"
17+
sh -e "$s" "$@"
18+
c=$?
19+
20+
[ $c != 0 ] && echo "husky - $n script failed (code $c)"
21+
[ $c = 127 ] && echo "husky - command not found in PATH=$PATH"
22+
exit $c

.husky/_/husky.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
echo "husky - DEPRECATED
2+
3+
Please remove the following two lines from $0:
4+
5+
#!/usr/bin/env sh
6+
. \"\$(dirname -- \"\$0\")/_/husky.sh\"
7+
8+
They WILL FAIL in v10.0.0
9+
"

.husky/_/post-applypatch

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname "$0")/h"

.husky/_/post-checkout

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname "$0")/h"

.husky/_/post-commit

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname "$0")/h"

.husky/_/post-merge

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname "$0")/h"

.husky/_/post-rewrite

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname "$0")/h"

.husky/_/pre-applypatch

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname "$0")/h"

0 commit comments

Comments
 (0)