Commit 0c2561c
committed
build: Add commit-lint
This commit introduces commitlint, a tool to enforce conventional commit
messages. This is crucial for the automated release process (issue #32)
to work correctly, as it relies on conventional commit messages to
generate the changelog.
The commit includes the following changes:
- Adds `commitlint.config.js` file that defines commitlint's rules for
conventional commits. This config file ensures commits adhere to the
Conventional Commits specification, allowing for automated changelog
generation.
- Adds a `.husky/commit-msg` hook which ensures that commitlint is run
before each commit.
- Adds `@commitlint/cli` and `@commitlint/config-conventional` packages
to `package-lock.json` to enable commitlint functionality.
- Updates `package.json` to add a "commitlint" script, allowing
developers to run commitlint directly.
By enforcing conventional commits, this commit improves the project's
workflow, making releases more reliable and automated. It ensures the
changelog is accurate and consistent, making it easier for developers
and users to understand the project's history and changes.1 parent 90039d1 commit 0c2561c
5 files changed
Lines changed: 1358 additions & 313 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
0 commit comments