Skip to content

Commit 33b0323

Browse files
authored
Topic/husky to 6 (#1002)
* husky-init * add .husky to git * yarn.lock
1 parent 6a218d5 commit 33b0323

File tree

5 files changed

+13
-9
lines changed

5 files changed

+13
-9
lines changed

.husky/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_

.husky/pre-commit

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
echo 'precommit 🔱' && inv lint

.husky/pre-push

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
echo 'prepush 🚀' && inv build && inv utest && inv atest

package.json

+3-8
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"grpc_tools_node_protoc_ts": "^5.2.2",
2121
"grpc-tools": "^1.11.1",
2222
"html-webpack-plugin": "^5.3.1",
23-
"husky": "6.0.0",
23+
"husky": "^6.0.0",
2424
"lint-staged": "^11.0.0",
2525
"pino": "^6.11.3",
2626
"prettier": "^2.3.0",
@@ -42,15 +42,10 @@
4242
"playwright": "^1.11.0",
4343
"uuid": "^8.3.2"
4444
},
45-
"husky": {
46-
"hooks": {
47-
"pre-commit": "echo 'precommit 🔱' && inv lint",
48-
"pre-push": "echo 'prepush 🚀' && inv build && inv utest && inv atest"
49-
}
50-
},
5145
"scripts": {
5246
"build": "webpack --config node/webpack.config.js",
5347
"watch": "webpack --config node/webpack.config.js --watch",
54-
"lint": "eslint 'node/**/*.{ts,tsx}' --quiet --fix"
48+
"lint": "eslint 'node/**/*.{ts,tsx}' --quiet --fix",
49+
"prepare": "husky install"
5550
}
5651
}

yarn.lock

+1-1
Original file line numberDiff line numberDiff line change
@@ -1747,7 +1747,7 @@ human-signals@^2.1.0:
17471747
resolved "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz"
17481748
integrity sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==
17491749

1750-
1750+
husky@^6.0.0:
17511751
version "6.0.0"
17521752
resolved "https://registry.yarnpkg.com/husky/-/husky-6.0.0.tgz#810f11869adf51604c32ea577edbc377d7f9319e"
17531753
integrity sha512-SQS2gDTB7tBN486QSoKPKQItZw97BMOd+Kdb6ghfpBc0yXyzrddI0oDV5MkDAbuB4X2mO3/nj60TRMcYxwzZeQ==

0 commit comments

Comments
 (0)