mirror of
https://github.com/wickedest/Mergely.git
synced 2026-05-20 08:47:21 +08:00
chore(ci): added git-conventional-commits
This commit is contained in:
3
.git-hooks/commit-msg
Executable file
3
.git-hooks/commit-msg
Executable file
@@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
npx git-conventional-commits commit-msg-hook "$1"
|
||||||
42
git-conventional-commits.json
Normal file
42
git-conventional-commits.json
Normal file
@@ -0,0 +1,42 @@
|
|||||||
|
{
|
||||||
|
"convention" : {
|
||||||
|
"commitTypes": [
|
||||||
|
"feat",
|
||||||
|
"fix",
|
||||||
|
"perf",
|
||||||
|
"refactor",
|
||||||
|
"style",
|
||||||
|
"test",
|
||||||
|
"build",
|
||||||
|
"ops",
|
||||||
|
"docs",
|
||||||
|
"chore",
|
||||||
|
"merge",
|
||||||
|
"revert"
|
||||||
|
],
|
||||||
|
"commitScopes": [],
|
||||||
|
"releaseTagGlobPattern": "v[0-9].*",
|
||||||
|
"issueRegexPattern": "(^|\\s)#\\d+(\\s|$)"
|
||||||
|
},
|
||||||
|
|
||||||
|
"changelog" : {
|
||||||
|
"commitTypes": [
|
||||||
|
"feat",
|
||||||
|
"fix",
|
||||||
|
"perf",
|
||||||
|
"merge"
|
||||||
|
],
|
||||||
|
"commitIgnoreRegexPattern": "^WIP ",
|
||||||
|
"headlines": {
|
||||||
|
"feat": "Features",
|
||||||
|
"fix": "Bug Fixes",
|
||||||
|
"perf": "Performance Improvements",
|
||||||
|
"merge": "Merged Branches",
|
||||||
|
"breakingChange": "BREAKING CHANGES"
|
||||||
|
},
|
||||||
|
|
||||||
|
"commitUrl": "https://github.com/wickedest/Mergely/commit/%commit%",
|
||||||
|
"commitRangeUrl": "https://github.com/wickedest/Mergely/compare/%from%...%to%?diff=split",
|
||||||
|
"issueUrl": "https://github.com/wickedest/Mergely/issues/%issue%"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -44,6 +44,7 @@
|
|||||||
"copy-webpack-plugin": "^6.2.1",
|
"copy-webpack-plugin": "^6.2.1",
|
||||||
"css-loader": "^5.0.0",
|
"css-loader": "^5.0.0",
|
||||||
"file-loader": "^6.1.1",
|
"file-loader": "^6.1.1",
|
||||||
|
"git-conventional-commits": "^1.1.0",
|
||||||
"html-webpack-plugin": "^4.5.0",
|
"html-webpack-plugin": "^4.5.0",
|
||||||
"image-webpack-loader": "^7.0.1",
|
"image-webpack-loader": "^7.0.1",
|
||||||
"jquery": "^3.5.1",
|
"jquery": "^3.5.1",
|
||||||
@@ -61,7 +62,8 @@
|
|||||||
"webpack-dev-server": "^3.11.0"
|
"webpack-dev-server": "^3.11.0"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "rm -rf lib && webpack --config ./webpack.prod.js",
|
"build": "npm run test && npm run build:dist",
|
||||||
|
"build:dist": "rm -rf lib && webpack --config ./webpack.prod.js",
|
||||||
"start": "webpack serve --config webpack.dev.js",
|
"start": "webpack serve --config webpack.dev.js",
|
||||||
"test": "karma start",
|
"test": "karma start",
|
||||||
"test:chrome": "karma start --browsers Chrome --singleRun=false"
|
"test:chrome": "karma start --browsers Chrome --singleRun=false"
|
||||||
|
|||||||
Reference in New Issue
Block a user