Compare commits

...

3 commits

Author SHA1 Message Date
Thomas Rupprecht a4a122a898 fix: correctly update the changelog on release 2023-05-25 00:09:11 +02:00
Thomas Rupprecht 785421117f feat(changelog): update the changelog automatically on every commit 2023-05-25 00:02:55 +02:00
Thomas Rupprecht b4e88abf53 feat(commitlint): add commitlint to enforce commit message format 2023-05-24 23:29:02 +02:00
6 changed files with 2561 additions and 446 deletions

3
.commitlintrc.js Normal file
View file

@ -0,0 +1,3 @@
module.exports = {
extends: ['@commitlint/config-conventional'],
};

4
.husky/commit-msg Executable file
View file

@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
npx --no -- commitlint --edit ${1}

View file

@ -3,3 +3,4 @@
npm run lint
npm test
npm run update-changelog && git add CHANGELOG.md

View file

@ -6,6 +6,13 @@ All notable changes to this project will be documented in this file.
### ⛰️ Features
- Add commitlint to enforce commit message format
- Update the changelog automatically on every commit
## \[[0.9.2](https://gitea.usrspace.at/XimeX/usrspace-browser-addon/releases/tag/v0.9.2)] - 2023-05-24
### ⛰️ Features
- Add git-cliff to update the CHANGELOG.md
### 🐛 Bug Fixes

2976
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -6,7 +6,11 @@
"webextension-polyfill": "^0.10.0"
},
"devDependencies": {
"@commitlint/cli": "^17.6.3",
"@commitlint/config-conventional": "^17.6.3",
"@commitlint/cz-commitlint": "^17.5.0",
"@types/firefox-webext-browser": "^111.0.1",
"commitizen": "^4.3.0",
"git-cliff": "^1.2.0",
"husky": "^8.0.3",
"web-ext": "^7.6.2"
@ -31,10 +35,16 @@
"postbuild:firefox": "npm run postbuild",
"postbuild:chromium": "npm run postbuild && npm run uninject-browser-polyfill",
"postinstall": "npm run copy-browser-polyfill",
"preversion": "npm run lint && npm test && npm run update-changelog",
"version": "npm run copy-version && npm run update-changelog && git add -u",
"preversion": "npm run lint && npm test",
"version": "npm run copy-version && npm run update-changelog && git add CHANGELOG.md src/manifest.json",
"postversion": "npm run build:firefox",
"prepare": "husky install"
"prepare": "husky install",
"commit": "git-cz"
},
"config": {
"commitizen": {
"path": "@commitlint/cz-commitlint"
}
},
"repository": {
"type": "git",