mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
26 lines
597 B
JavaScript
26 lines
597 B
JavaScript
const path = require('path');
|
|
const shelljs = require('shelljs');
|
|
|
|
function changelog(dist, cmd) {
|
|
const basepath = process.cwd();
|
|
const tag = cmd.tag || 'v1.0.0';
|
|
|
|
shelljs.exec(`
|
|
basepath=${basepath}
|
|
|
|
github_changelog_generator \
|
|
--header-label "# 更新日志" \
|
|
--bugs-label "**Bug Fixes**" \
|
|
--enhancement-label "**Breaking changes**" \
|
|
--issues-label "**Issue**" \
|
|
--pr-label "**Improvements**" \
|
|
--no-issues \
|
|
--no-unreleased \
|
|
--since-tag ${tag} \
|
|
-o ${path.join(basepath, dist)}
|
|
`
|
|
);
|
|
}
|
|
|
|
module.exports = changelog;
|