mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-24 18:36:51 +08:00
fix(cli): should output changelog build process
This commit is contained in:
parent
5656c16232
commit
859e732753
@ -22,7 +22,7 @@
|
|||||||
"test:watch": "vant-cli test --watch",
|
"test:watch": "vant-cli test --watch",
|
||||||
"release:site": "sh docs/site/release.sh",
|
"release:site": "sh docs/site/release.sh",
|
||||||
"test:coverage": "open test/coverage/index.html",
|
"test:coverage": "open test/coverage/index.html",
|
||||||
"changelog": "vant-cli changelog ./docs/changelog.generated.md"
|
"changelog": "vant-cli changelog ./changelog.generated.md --tag 2.3.0"
|
||||||
},
|
},
|
||||||
"husky": {
|
"husky": {
|
||||||
"hooks": {
|
"hooks": {
|
||||||
|
@ -5,7 +5,8 @@ import { ROOT } from '../common/constant';
|
|||||||
export function changelog(dist: string, cmd: { tag?: string }) {
|
export function changelog(dist: string, cmd: { tag?: string }) {
|
||||||
const tag = cmd.tag || 'v1.0.0';
|
const tag = cmd.tag || 'v1.0.0';
|
||||||
|
|
||||||
exec(`
|
exec(
|
||||||
|
`
|
||||||
basepath=${ROOT}
|
basepath=${ROOT}
|
||||||
|
|
||||||
github_changelog_generator \
|
github_changelog_generator \
|
||||||
@ -19,5 +20,9 @@ export function changelog(dist: string, cmd: { tag?: string }) {
|
|||||||
--no-unreleased \
|
--no-unreleased \
|
||||||
--since-tag ${tag} \
|
--since-tag ${tag} \
|
||||||
-o ${join(ROOT, dist)}
|
-o ${join(ROOT, dist)}
|
||||||
`);
|
`,
|
||||||
|
{
|
||||||
|
silent: false
|
||||||
|
}
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user