From 637e7f9e0bcd738153ea0411fb6f51af5ed6bae0 Mon Sep 17 00:00:00 2001 From: Shahar Soel Date: Thu, 4 Jan 2024 18:21:11 +0200 Subject: [PATCH] chore: husky hooks --- .husky/commit-msg | 4 ++++ .husky/pre-commit | 4 ++++ CONTRIBUTING.md | 3 +-- 3 files changed, 9 insertions(+), 2 deletions(-) create mode 100755 .husky/commit-msg create mode 100755 .husky/pre-commit diff --git a/.husky/commit-msg b/.husky/commit-msg new file mode 100755 index 0000000..0bd658f --- /dev/null +++ b/.husky/commit-msg @@ -0,0 +1,4 @@ +#!/bin/sh +. "$(dirname "$0")/_/husky.sh" + +npx --no-install commitlint --edit "$1" diff --git a/.husky/pre-commit b/.husky/pre-commit new file mode 100755 index 0000000..c70c608 --- /dev/null +++ b/.husky/pre-commit @@ -0,0 +1,4 @@ +#!/bin/sh +. "$(dirname "$0")/_/husky.sh" + +npx --no-install lint-staged \ No newline at end of file diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 92a2358..18d797c 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,6 +1,5 @@ # Contribution Guide - This is the common top level contribution guide for this mono-repo. A sub-package **may** have an additional CONTRIBUTING.md file if needed. @@ -92,7 +91,7 @@ does not generate any artifacts for runtime. ### Release Life-Cycle. -This monorepo uses Lerna's [fixed / locked][lerna-mode] mode +This monorepo uses Lerna's [fixed / locked][lerna-mode] mode and automatically generates the changelog by adhering to [Conventional Commits][cc] [lerna-mode]: https://lerna.js.org/docs/features/version-and-publish#fixedlocked-mode-default