-
Notifications
You must be signed in to change notification settings - Fork 5
/
defaults.ts
80 lines (77 loc) · 1.51 KB
/
defaults.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
export const DEV_DEPS_TO_ADD = {
commitlint: {
'@commitlint/cli': '^11.0.0',
'@commitlint/config-conventional': '^11.0.0',
},
commitizen: {
commitizen: '^4.2.2',
'cz-conventional-changelog': '^3.3.0',
},
husky: {
husky: '^4.3.0',
},
'standard-version': {
'standard-version': '^9.0.0',
},
};
export const HUSKY_DEFAULTS = {
hooks: {
'commit-msg': 'commitlint -E HUSKY_GIT_PARAMS',
},
};
export const COMMITIZEN_DEFAULTS = {
commitizen: {
path: './node_modules/cz-conventional-changelog',
},
};
export const STANDARD_VERSION_DEFAULTS = {
types: [
{
type: 'feat',
section: 'Features',
},
{
type: 'fix',
section: 'Bug Fixes',
},
{
type: 'chore',
hidden: true,
},
{
type: 'ci',
hidden: true,
},
{
type: 'build',
hidden: true,
},
{
type: 'docs',
hidden: true,
},
{
type: 'style',
hidden: true,
},
{
type: 'refactor',
hidden: true,
},
{
type: 'perf',
hidden: true,
},
{
type: 'test',
hidden: true,
},
],
header: 'Changelog',
commitUrlFormat: '{{host}}/{{owner}}/{{repository}}/commit/{{hash}}',
compareUrlFormat: '{{host}}/{{owner}}/{{repository}}/compare/{{previousTag}}...{{currentTag}}',
issueUrlFormat: '{{host}}/{{owner}}/{{repository}}/issues/{{id}}',
userUrlFormat: '{{host}}/{{user}}',
releaseCommitMessageFormat: 'chore(release): {{currentTag}}',
issuePrefixes: ['#'],
};