add husky

This commit is contained in:
fmtabbara
2021-08-05 14:23:19 +01:00
parent 6512bfb4d9
commit 6faf8786ea
3 changed files with 35 additions and 1 deletions
+22
View File
@@ -27,6 +27,7 @@
"@types/node": "^14.6.4",
"@types/react": "^16.9.49",
"babel-jest": "^27.0.6",
"husky": "^7.0.1",
"jest": "^27.0.6",
"typescript": "^4.2.2"
}
@@ -5965,6 +5966,21 @@
"node": ">=10.17.0"
}
},
"node_modules/husky": {
"version": "7.0.1",
"resolved": "https://registry.npmjs.org/husky/-/husky-7.0.1.tgz",
"integrity": "sha512-gceRaITVZ+cJH9sNHqx5tFwbzlLCVxtVZcusME8JYQ8Edy5mpGDOqD8QBCdMhpyo9a+JXddnujQ4rpY2Ff9SJA==",
"dev": true,
"bin": {
"husky": "lib/bin.js"
},
"engines": {
"node": ">=12"
},
"funding": {
"url": "https://github.com/sponsors/typicode"
}
},
"node_modules/hyphenate-style-name": {
"version": "1.0.4",
"resolved": "https://registry.npmjs.org/hyphenate-style-name/-/hyphenate-style-name-1.0.4.tgz",
@@ -15401,6 +15417,12 @@
"integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==",
"dev": true
},
"husky": {
"version": "7.0.1",
"resolved": "https://registry.npmjs.org/husky/-/husky-7.0.1.tgz",
"integrity": "sha512-gceRaITVZ+cJH9sNHqx5tFwbzlLCVxtVZcusME8JYQ8Edy5mpGDOqD8QBCdMhpyo9a+JXddnujQ4rpY2Ff9SJA==",
"dev": true
},
"hyphenate-style-name": {
"version": "1.0.4",
"resolved": "https://registry.npmjs.org/hyphenate-style-name/-/hyphenate-style-name-1.0.4.tgz",
+8 -1
View File
@@ -8,7 +8,8 @@
"dev": "next dev",
"build": "next build && next export",
"start": "next start",
"test": "jest --watch"
"test": "jest",
"test:watch": "jest --watch"
},
"dependencies": {
"@material-ui/core": "^4.11.3",
@@ -30,7 +31,13 @@
"@types/node": "^14.6.4",
"@types/react": "^16.9.49",
"babel-jest": "^27.0.6",
"husky": "^7.0.1",
"jest": "^27.0.6",
"typescript": "^4.2.2"
},
"husky": {
"hooks": {
"pre-push": "npm run test"
}
}
}
+5
View File
@@ -3119,6 +3119,11 @@
"resolved" "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz"
"version" "2.1.0"
"husky@^7.0.1":
"integrity" "sha512-gceRaITVZ+cJH9sNHqx5tFwbzlLCVxtVZcusME8JYQ8Edy5mpGDOqD8QBCdMhpyo9a+JXddnujQ4rpY2Ff9SJA=="
"resolved" "https://registry.npmjs.org/husky/-/husky-7.0.1.tgz"
"version" "7.0.1"
"hyphenate-style-name@^1.0.3":
"integrity" "sha512-ygGZLjmXfPHj+ZWh6LwbC37l43MhfztxetbFCoYTM2VjkIUpeHgSNn7QIyVFj7YQ1Wl9Cbw5sholVJPzWvC2MQ=="
"resolved" "https://registry.npmjs.org/hyphenate-style-name/-/hyphenate-style-name-1.0.4.tgz"