Add git commit hooks

This commit is contained in:
Gabriel Tofvesson 2024-12-31 01:53:01 +01:00
parent aef13e1a75
commit 9481dba1a1
3 changed files with 27 additions and 7 deletions

1
.husky/pre-commit Normal file
View File

@ -0,0 +1 @@
npm test

16
package-lock.json generated
View File

@ -8,6 +8,7 @@
"name": "tofvesson.se",
"version": "0.1.0",
"dependencies": {
"husky": "^9.1.7",
"next": "15.1.3",
"react": "^19.0.0",
"react-dom": "^19.0.0"
@ -3122,6 +3123,21 @@
"node": ">= 0.4"
}
},
"node_modules/husky": {
"version": "9.1.7",
"resolved": "https://registry.npmjs.org/husky/-/husky-9.1.7.tgz",
"integrity": "sha512-5gs5ytaNjBrh5Ow3zrvdUUY+0VxIuWVL4i9irt6friV+BqdCfmV11CQTWMiBYWHbXhco+J1kHfTOUkePhCDvMA==",
"license": "MIT",
"bin": {
"husky": "bin.js"
},
"engines": {
"node": ">=18"
},
"funding": {
"url": "https://github.com/sponsors/typicode"
}
},
"node_modules/ignore": {
"version": "5.3.2",
"resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz",

View File

@ -6,22 +6,25 @@
"dev": "next dev --turbopack",
"build": "next build",
"start": "next start",
"lint": "next lint"
"lint": "next lint",
"test": "next lint",
"prepare": "husky"
},
"dependencies": {
"husky": "^9.1.7",
"next": "15.1.3",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"next": "15.1.3"
"react-dom": "^19.0.0"
},
"devDependencies": {
"typescript": "^5",
"@eslint/eslintrc": "^3",
"@types/node": "^20",
"@types/react": "^19",
"@types/react-dom": "^19",
"postcss": "^8",
"tailwindcss": "^3.4.1",
"eslint": "^9",
"eslint-config-next": "15.1.3",
"@eslint/eslintrc": "^3"
"postcss": "^8",
"tailwindcss": "^3.4.1",
"typescript": "^5"
}
}