@itcase/config 1.1.0 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -10,7 +10,6 @@ export default {
|
|
|
10
10
|
rules: {
|
|
11
11
|
'type-case': [0],
|
|
12
12
|
'body-empty': [1, 'always'],
|
|
13
|
-
'header-match-type-pattern': [2, 'always'],
|
|
14
13
|
'subject-empty': [2, 'never'],
|
|
15
14
|
'subject-case': [
|
|
16
15
|
2,
|
|
@@ -18,25 +17,11 @@ export default {
|
|
|
18
17
|
['lower-case', 'sentence-case', 'start-case'],
|
|
19
18
|
],
|
|
20
19
|
'type-empty': [2, 'never'],
|
|
21
|
-
'scope-empty': [2, '
|
|
20
|
+
'scope-empty': [2, 'never'],
|
|
22
21
|
'footer-empty': [1, 'always'],
|
|
23
22
|
'type-enum': [2, 'always', Array.from(commitTypes)],
|
|
24
23
|
},
|
|
25
24
|
defaultIgnores: true,
|
|
26
|
-
plugins: [
|
|
27
|
-
{
|
|
28
|
-
rules: {
|
|
29
|
-
'header-match-type-pattern': (parsed) => {
|
|
30
|
-
const { type } = parsed
|
|
31
|
-
if (!commitTypes.has(type)) {
|
|
32
|
-
const errorMessage = `type must be in ['major','minor','patch']`
|
|
33
|
-
return [false, errorMessage]
|
|
34
|
-
}
|
|
35
|
-
return [true, '']
|
|
36
|
-
},
|
|
37
|
-
},
|
|
38
|
-
},
|
|
39
|
-
],
|
|
40
25
|
prompt: {
|
|
41
26
|
settings: {},
|
|
42
27
|
questions: {
|
|
@@ -46,17 +31,17 @@ export default {
|
|
|
46
31
|
patch: {
|
|
47
32
|
description:
|
|
48
33
|
'Patch version when you make backwards compatible bug fixes',
|
|
49
|
-
title: 'Patch
|
|
34
|
+
title: 'Patch',
|
|
50
35
|
emoji: '✅',
|
|
51
36
|
},
|
|
52
37
|
minor: {
|
|
53
38
|
description: 'Minor version when you add functionality',
|
|
54
|
-
title: 'Minor
|
|
39
|
+
title: 'Minor',
|
|
55
40
|
emoji: '🐞',
|
|
56
41
|
},
|
|
57
42
|
major: {
|
|
58
43
|
description: 'Major version when you make incompatible API changes',
|
|
59
|
-
title: 'Major
|
|
44
|
+
title: 'Major',
|
|
60
45
|
emoji: '⭐️',
|
|
61
46
|
},
|
|
62
47
|
},
|
package/package.json
CHANGED
|
@@ -30,10 +30,6 @@ const semanticReleaseConfig = {
|
|
|
30
30
|
{ type: 'feat', section: 'Features' },
|
|
31
31
|
{ type: 'styles', section: 'CSS and styles' },
|
|
32
32
|
{ type: 'refactor', section: 'Refactoring' },
|
|
33
|
-
{
|
|
34
|
-
type: 'perf',
|
|
35
|
-
section: 'Performance Improvements',
|
|
36
|
-
},
|
|
37
33
|
{ type: 'tests', section: 'Tests' },
|
|
38
34
|
],
|
|
39
35
|
},
|