Skip to content

Commit f11c32b

Browse files
committed
feat(@142vip/changelog): 增加CONFIG_DEFAULT_HEADER等默认值常量
1 parent 0273849 commit f11c32b

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

packages/changelog/src/shared/config.ts

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,26 @@
11
import type { ChangelogCliOptions, ChangelogGenerateOptions } from '../enums'
22
import { VipConfig, VipGit } from '@142vip/utils'
33

4-
export const CONFIG_DEFAULT_NAME: string = 'changelog'
4+
/**
5+
* changelog默认的名称配置
6+
*/
7+
export const CONFIG_DEFAULT_NAME = 'changelog' as string
8+
9+
/**
10+
* changelog默认的header配置
11+
*/
12+
export const CONFIG_DEFAULT_HEADER = `# Changelog
13+
14+
All notable changes to this project will be documented in this file. See [commit-and-tag-version](https://github.com/absolute-version/commit-and-tag-version) for commit guidelines.
15+
16+
` as string
517

618
/**
719
* 默认配置
820
*/
921
export const ChangelogDefaultConfig = {
1022
scopeMap: {},
11-
header: '# Changelog\n\nAll notable changes to this project will be documented in this file. See [commit-and-tag-version](https://github.com/absolute-version/commit-and-tag-version) for commit guidelines.\n',
12-
// header: DEFAULT_CHANGELOG_HEADER,
23+
header: CONFIG_DEFAULT_HEADER,
1324
types: {
1425
feat: { title: '✨ Features', semver: 'minor' },
1526
perf: { title: '🔥 Performance', semver: 'patch' },

0 commit comments

Comments
 (0)