Skip to content

Commit

Permalink
Merge pull request #2448 from axa-ch-webhub-cloud/2415-use-convention…
Browse files Browse the repository at this point in the history
…al-commits

chore: lint for conventional commits
  • Loading branch information
thomas-krueger-axa authored Jul 13, 2023
2 parents 70e612c + 078ea8c commit ac59d1e
Show file tree
Hide file tree
Showing 5 changed files with 1,331 additions and 856 deletions.
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx --no -- commitlint --edit
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,20 @@ We are dedicated to building a welcoming, diverse, and safe community. We expect

This repository is a monorepo managed by Lerna. This means that all components are centrally managed here, even though we publish them to NPM as separate packages.

## Commits

We are using [Conventional Commits](https://www.conventionalcommits.org/) to automatically version the components and update their changelogs.
Feel free to use a [tool of your choice](https://www.conventionalcommits.org/en/about/#tooling-for-conventional-commits) to generate these commits.

Example for a commit message
```
feat(button): add new color blue
Closes #ticket-1234
```

For more examples, especially with BREAKING CHANGES, have a look at the [Conventional Commits Examples](https://www.conventionalcommits.org/en/v1.0.0/#examples).

## Pattern Library via community CDN

You can add any Pattern Library component via the community CDN jsdelivr. This is useful for Prototyping or experimenting or if you don't want to bother with a frontend stack. This works only native (no react support). Here an example on how to add the JS for `<axa-button></axa-button>`: `<script src="https://cdn.jsdelivr.net/npm/@axa-ch/button@latest/dist/index.js"></script>`
Expand Down
1 change: 1 addition & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = { extends: ['@commitlint/config-lerna-scopes'] };
Loading

0 comments on commit ac59d1e

Please sign in to comment.