Skip to content

Commit 4e21175

Browse files
committed
readded husky precommit
1 parent b600c66 commit 4e21175

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.husky/pre-commit

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
# npm test
5+
npx lint-staged
6+
7+
if [ "$(uname)" == "Darwin" ]; then
8+
npm run test
9+
elif [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then
10+
npm run test
11+
elif [ "$(expr substr $(uname -s) 1 5)" == "MINGW" ]; then
12+
npm run testWin
13+
fi

0 commit comments

Comments
 (0)