Skip to content
This repository was archived by the owner on Nov 23, 2022. It is now read-only.

Commit 6291859

Browse files
committed
chore(lint): add commitlint and conv. changelog
1 parent a17af80 commit 6291859

File tree

4 files changed

+53
-1
lines changed

4 files changed

+53
-1
lines changed

.husky/commit-msg

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
yarn commitlint --edit $1

.versionrc.json

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"commitUrlFormat": "https://github.com/0x77dev/dstack/commits/{{hash}}",
3+
"compareUrlFormat": "https://github.com/0x77dev/dstack/compare/{{previousTag}}...{{currentTag}}",
4+
"types": [
5+
{
6+
"section": "Features",
7+
"type": "feat"
8+
},
9+
{
10+
"section": "Bug Fixes",
11+
"type": "fix"
12+
},
13+
{
14+
"hidden": true,
15+
"type": "chore"
16+
},
17+
{
18+
"hidden": true,
19+
"type": "docs"
20+
},
21+
{
22+
"hidden": true,
23+
"type": "style"
24+
},
25+
{
26+
"hidden": true,
27+
"type": "refactor"
28+
},
29+
{
30+
"hidden": true,
31+
"type": "perf"
32+
},
33+
{
34+
"hidden": true,
35+
"type": "test"
36+
}
37+
]
38+
}

commitlint.config.js

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = {extends: ['@commitlint/config-conventional']}

package.json

+10-1
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,13 @@
33
"version": "0.0.0",
44
"license": "GPl-3.0",
55
"scripts": {
6+
"prepare": "husky install",
67
"build": "nx run-many --all --target=build",
7-
"version:bump": "lerna version bump"
8+
"version:bump": "lerna version bump",
9+
"release": "standard-version",
10+
"release:minor": "standard-version --release-as minor",
11+
"release:patch": "standard-version --release-as patch",
12+
"release:major": "standard-version --release-as major"
813
},
914
"private": true,
1015
"dependencies": {
@@ -16,6 +21,8 @@
1621
"docs"
1722
],
1823
"devDependencies": {
24+
"@commitlint/cli": "^16.1.0",
25+
"@commitlint/config-conventional": "^16.0.0",
1926
"@nrwl/cli": "13.4.4",
2027
"@nrwl/eslint-plugin-nx": "13.4.4",
2128
"@nrwl/jest": "13.4.4",
@@ -29,9 +36,11 @@
2936
"@typescript-eslint/parser": "~5.3.0",
3037
"eslint": "8.2.0",
3138
"eslint-config-prettier": "8.1.0",
39+
"husky": "^7.0.4",
3240
"jest": "27.2.3",
3341
"lerna": "^4.0.0",
3442
"prettier": "^2.3.1",
43+
"standard-version": "^9.3.2",
3544
"ts-jest": "27.0.5",
3645
"typescript": "~4.4.3"
3746
}

0 commit comments

Comments
 (0)