From 1daf028ada6399b10bb5e36bfe71b597446e06d9 Mon Sep 17 00:00:00 2001 From: Viserion77 Date: Tue, 10 Dec 2024 22:49:41 +0000 Subject: [PATCH] ci: :sparkles: add husky commit-msg hook for commitlint validation and update package dependencies --- .husky/commit-msg | 1 + package-lock.json | 17 +++++++++++++++++ package.json | 4 +++- 3 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 .husky/commit-msg diff --git a/.husky/commit-msg b/.husky/commit-msg new file mode 100644 index 0000000..032ee3f --- /dev/null +++ b/.husky/commit-msg @@ -0,0 +1 @@ +npx commitlint --edit $1 \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index d6ed4ca..66c0f2c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -27,6 +27,7 @@ "dotenv": "^16.4.5", "dotenv-expand": "^11.0.6", "happy-dom": "^15.11.6", + "husky": "^9.1.7", "playwright-core": "^1.48.2", "prettier": "^3.3.3", "tsx": "^4.19.2", @@ -7844,6 +7845,22 @@ "node": ">=14.18.0" } }, + "node_modules/husky": { + "version": "9.1.7", + "resolved": "https://registry.npmjs.org/husky/-/husky-9.1.7.tgz", + "integrity": "sha512-5gs5ytaNjBrh5Ow3zrvdUUY+0VxIuWVL4i9irt6friV+BqdCfmV11CQTWMiBYWHbXhco+J1kHfTOUkePhCDvMA==", + "dev": true, + "license": "MIT", + "bin": { + "husky": "bin.js" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/typicode" + } + }, "node_modules/ieee754": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", diff --git a/package.json b/package.json index 87f9977..5347362 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,8 @@ "migration:create": "tsx resources/migration create", "migration:up": "tsx resources/migration up", "test": "npm run services:up && concurrently -n nuxt,vitest --hide nuxt -k -s command-vitest \"nuxt dev\" \"vitest --run\"", - "test:watch": "vitest" + "test:watch": "vitest", + "prepare": "husky" }, "dependencies": { "@nuxt/eslint": "^0.7.2", @@ -42,6 +43,7 @@ "dotenv": "^16.4.5", "dotenv-expand": "^11.0.6", "happy-dom": "^15.11.6", + "husky": "^9.1.7", "playwright-core": "^1.48.2", "prettier": "^3.3.3", "tsx": "^4.19.2",