Skip to content

Commit 8597856

Browse files
committed
feat: add new keywords and create git hooks
1 parent 3627939 commit 8597856

File tree

4 files changed

+15
-4
lines changed

4 files changed

+15
-4
lines changed

.husky/pre-commit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
yarn format && yarn test

.husky/pre-push

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
yarn format && yarn test

package.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111
"hooks",
1212
"form-submission",
1313
"use-web3forms",
14-
"web3forms"
14+
"web3forms",
15+
"react-hook",
16+
"react-hook-form"
1517
],
1618
"main": "./dist/index.js",
1719
"module": "./dist/index.modern.js",
@@ -25,7 +27,8 @@
2527
"build": "rimraf dist && microbundle --jsx React.createElement --compress --no-sourcemap",
2628
"test": "jest",
2729
"dev": "yarn build && microbundle watch -o dist/ --no-sourcemap --no-compress --jsx React.createElement",
28-
"format": "prettier --write 'src/**/*.{js,ts,tsx,jsx,json,md}'"
30+
"format": "prettier --write 'src/**/*.{js,ts,tsx,jsx,json,md}'",
31+
"prepare": "husky install"
2932
},
3033
"dependencies": {},
3134
"peerDependencies": {
@@ -42,7 +45,7 @@
4245
"@types/jest": "^26.0.21",
4346
"@types/react": "^16.9.53",
4447
"babel-jest": "^26.6.3",
45-
"husky": "^7.0.2",
48+
"husky": "^7.0.0",
4649
"isomorphic-fetch": "^3.0.0",
4750
"jest": "^26.6.3",
4851
"microbundle": "^0.12.3",

yarn.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3660,7 +3660,7 @@ human-signals@^2.1.0:
36603660
resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-2.1.0.tgz#dc91fcba42e4d06e4abaed33b3e7a3c02f514ea0"
36613661
integrity sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==
36623662

3663-
husky@^7.0.2:
3663+
husky@^7.0.0:
36643664
version "7.0.2"
36653665
resolved "https://registry.yarnpkg.com/husky/-/husky-7.0.2.tgz#21900da0f30199acca43a46c043c4ad84ae88dff"
36663666
integrity sha512-8yKEWNX4z2YsofXAMT7KvA1g8p+GxtB1ffV8XtpAEGuXNAbCV5wdNKH+qTpw8SM9fh4aMPDR+yQuKfgnreyZlg==

0 commit comments

Comments
 (0)