feat: add commitlint #13
|
@ -4,3 +4,4 @@ dist
|
||||||
k8s
|
k8s
|
||||||
.prettierrc.js
|
.prettierrc.js
|
||||||
.terserrc.js
|
.terserrc.js
|
||||||
|
commitlint.config.js
|
||||||
|
|
4
.husky/commit-msg
Executable file
4
.husky/commit-msg
Executable file
|
@ -0,0 +1,4 @@
|
||||||
|
#!/usr/bin/env sh
|
||||||
|
. "$(dirname -- "$0")/_/husky.sh"
|
||||||
|
|
||||||
|
npx --no -- commitlint --edit ${1}
|
3
commitlint.config.js
Normal file
3
commitlint.config.js
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
module.exports = {
|
||||||
|
extends: ['@commitlint/config-conventional'],
|
||||||
|
};
|
|
@ -3,6 +3,7 @@
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
"prepare": "husky install",
|
||||||
"build-single": "PUBLIC_URL=https://scripts.tribalwarshelp.com parcel build",
|
"build-single": "PUBLIC_URL=https://scripts.tribalwarshelp.com parcel build",
|
||||||
"build:extended-player-profile-user": "PREAMBLE=extended-player-profile yarn build-single ./src/extended-player-profile.user.ts",
|
"build:extended-player-profile-user": "PREAMBLE=extended-player-profile yarn build-single ./src/extended-player-profile.user.ts",
|
||||||
"build:extended-player-profile-quickbar": "yarn build-single ./src/extended-player-profile.quickbar.ts",
|
"build:extended-player-profile-quickbar": "yarn build-single ./src/extended-player-profile.quickbar.ts",
|
||||||
|
@ -30,6 +31,8 @@
|
||||||
"since 2017-06"
|
"since 2017-06"
|
||||||
],
|
],
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"@commitlint/cli": "^17.4.4",
|
||||||
|
"@commitlint/config-conventional": "^17.4.4",
|
||||||
"@parcel/validator-eslint": "^2.8.3",
|
"@parcel/validator-eslint": "^2.8.3",
|
||||||
"@parcel/validator-typescript": "^2.8.3",
|
"@parcel/validator-typescript": "^2.8.3",
|
||||||
"@types/jquery": "^3.5.14",
|
"@types/jquery": "^3.5.14",
|
||||||
|
@ -40,6 +43,7 @@
|
||||||
"buffer": "^5.5.0",
|
"buffer": "^5.5.0",
|
||||||
"eslint": "^7.32.0",
|
"eslint": "^7.32.0",
|
||||||
"eslint-config-prettier": "^8.6.0",
|
"eslint-config-prettier": "^8.6.0",
|
||||||
|
"husky": "^8.0.3",
|
||||||
"npm-run-all": "^4.1.5",
|
"npm-run-all": "^4.1.5",
|
||||||
"parcel": "^2.8.3",
|
"parcel": "^2.8.3",
|
||||||
"prettier": "^2.8.3",
|
"prettier": "^2.8.3",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user