Skip to content

Commit e6d773a

Browse files
committed
chore(package.json): 新增生成 changelog 命令
1 parent e234aff commit e6d773a

File tree

4 files changed

+13
-3822
lines changed

4 files changed

+13
-3822
lines changed

.convention-changelog-config.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
'use strict'
2+
3+
module.exports = {
4+
gitRawCommitsOpts: {
5+
// null => 所有 commit 上的 tag 计入 changelog
6+
// true => 仅 merge commit 上的 tag 计入 changelog
7+
// null => 仅非 merge commit 上的 tag 计入 changelog
8+
merges: null
9+
}
10+
}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,4 @@ yarn-error.log
2020
package-lock.json
2121
examples/project.config.json
2222
/.run
23+
yarn.lock

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
"watch": "gulp -f build/index.js watch",
1313
"lint": "eslint ./src/**/*.js",
1414
"test": "jest",
15-
"release": "sh build/release.sh"
15+
"release": "sh build/release.sh",
16+
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -n .convention-changelog-config.js"
1617
},
1718
"repository": {
1819
"type": "git",

0 commit comments

Comments
 (0)