@itcase/config 1.6.7 → 1.6.8

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.
@@ -46,8 +46,8 @@ export default {
46
46
  emoji: '📚',
47
47
  },
48
48
  test: {
49
- description: 'Adding missing tests or correcting existing tests',
50
49
  title: 'Tests',
50
+ description: 'Adding missing tests or correcting existing tests',
51
51
  emoji: '🚨',
52
52
  },
53
53
  ci: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itcase/config",
3
- "version": "1.6.7",
3
+ "version": "1.6.8",
4
4
  "author": "ITCase",
5
5
  "description": "ITCase Config ",
6
6
  "engines": {
@@ -0,0 +1,22 @@
1
+ const releaseRules = [
2
+ { type: 'major', release: 'major' },
3
+ { type: 'minor', release: 'minor' },
4
+ { type: 'patch', release: 'patch' },
5
+ { type: 'feat', release: 'patch' },
6
+ { type: 'fix', release: 'patch' },
7
+ { type: 'docs', release: 'patch' },
8
+ { type: 'test', release: 'patch' },
9
+ { type: 'ci', release: 'patch' },
10
+ { type: 'other', release: 'patch' },
11
+ ]
12
+
13
+ const releaseNotesTypes = [
14
+ { type: 'feat', section: 'Features' },
15
+ { type: 'fix', section: 'Bug Fixes' },
16
+ { type: 'docs', section: 'Documentation' },
17
+ { type: 'test', section: 'Tests' },
18
+ { type: 'ci', section: 'Continuous Integrations' },
19
+ { type: 'other', section: 'Other' },
20
+ ]
21
+
22
+ export { releaseNotesTypes, releaseRules }
@@ -1,20 +1,10 @@
1
1
  /* eslint-disable perfectionist/sort-objects */
2
2
 
3
+ import { releaseNotesTypes, releaseRules } from './config.js'
4
+
3
5
  // Keywords for important notes. This value is case insensitive.
4
6
  const noteKeywords = ['BREAKING CHANGE', 'BREAKING CHANGES', 'BREAKING']
5
7
 
6
- const releaseRules = [
7
- { type: 'major', release: 'major' },
8
- { type: 'minor', release: 'minor' },
9
- { type: 'patch', release: 'patch' },
10
- { type: 'feat', release: 'patch' },
11
- { type: 'fix', release: 'patch' },
12
- { type: 'docs', release: 'patch' },
13
- { type: 'test', release: 'patch' },
14
- { type: 'ci', release: 'patch' },
15
- { type: 'other', release: 'patch' },
16
- ]
17
-
18
8
  const semanticReleaseConfig = {
19
9
  branches: ['master'],
20
10
  preset: 'conventionalcommits',
@@ -30,13 +20,7 @@ const semanticReleaseConfig = {
30
20
  '@semantic-release/release-notes-generator',
31
21
  {
32
22
  presetConfig: {
33
- types: [
34
- { type: 'fix', section: 'Fixes' },
35
- { type: 'feat', section: 'Features' },
36
- { type: 'styles', section: 'CSS and styles' },
37
- { type: 'refactor', section: 'Refactoring' },
38
- { type: 'tests', section: 'Tests' },
39
- ],
23
+ types: releaseNotesTypes,
40
24
  },
41
25
  parserOpts: { noteKeywords: noteKeywords },
42
26
  writerOpts: { commitsSort: ['subject', 'scope'] },
@@ -1,20 +1,10 @@
1
1
  /* eslint-disable perfectionist/sort-objects */
2
2
 
3
+ import { releaseNotesTypes, releaseRules } from './config.js'
4
+
3
5
  // Keywords for important notes. This value is case insensitive.
4
6
  const noteKeywords = ['BREAKING CHANGE', 'BREAKING CHANGES', 'BREAKING']
5
7
 
6
- const releaseRules = [
7
- { type: 'major', release: 'major' },
8
- { type: 'minor', release: 'minor' },
9
- { type: 'patch', release: 'patch' },
10
- { type: 'feat', release: 'patch' },
11
- { type: 'fix', release: 'patch' },
12
- { type: 'docs', release: 'patch' },
13
- { type: 'test', release: 'patch' },
14
- { type: 'ci', release: 'patch' },
15
- { type: 'other', release: 'patch' },
16
- ]
17
-
18
8
  const lernaSemanticReleaseConfig = {
19
9
  branches: ['master'],
20
10
  preset: 'conventionalcommits',
@@ -31,17 +21,7 @@ const lernaSemanticReleaseConfig = {
31
21
  '@semantic-release/release-notes-generator',
32
22
  {
33
23
  presetConfig: {
34
- types: [
35
- { type: 'fix', section: 'Fixes' },
36
- { type: 'feat', section: 'Features' },
37
- { type: 'styles', section: 'CSS and styles' },
38
- { type: 'refactor', section: 'Refactoring' },
39
- {
40
- type: 'perf',
41
- section: 'Performance Improvements',
42
- },
43
- { type: 'tests', section: 'Tests' },
44
- ],
24
+ types: releaseNotesTypes,
45
25
  },
46
26
  parserOpts: { noteKeywords: noteKeywords },
47
27
  writerOpts: { commitsSort: ['subject', 'scope'] },
@@ -1,20 +1,10 @@
1
1
  /* eslint-disable perfectionist/sort-objects */
2
2
 
3
+ import { releaseNotesTypes, releaseRules } from './config.js'
4
+
3
5
  // Keywords for important notes. This value is case insensitive.
4
6
  const noteKeywords = ['BREAKING CHANGE', 'BREAKING CHANGES', 'BREAKING']
5
7
 
6
- const releaseRules = [
7
- { type: 'major', release: 'major' },
8
- { type: 'minor', release: 'minor' },
9
- { type: 'patch', release: 'patch' },
10
- { type: 'feat', release: 'patch' },
11
- { type: 'fix', release: 'patch' },
12
- { type: 'docs', release: 'patch' },
13
- { type: 'test', release: 'patch' },
14
- { type: 'ci', release: 'patch' },
15
- { type: 'other', release: 'patch' },
16
- ]
17
-
18
8
  const semanticReleaseConfig = {
19
9
  branches: ['master'],
20
10
  preset: 'conventionalcommits',
@@ -30,17 +20,7 @@ const semanticReleaseConfig = {
30
20
  '@semantic-release/release-notes-generator',
31
21
  {
32
22
  presetConfig: {
33
- types: [
34
- { type: 'fix', section: 'Fixes' },
35
- { type: 'feat', section: 'Features' },
36
- { type: 'styles', section: 'CSS and styles' },
37
- { type: 'refactor', section: 'Refactoring' },
38
- {
39
- type: 'perf',
40
- section: 'Performance Improvements',
41
- },
42
- { type: 'tests', section: 'Tests' },
43
- ],
23
+ types: releaseNotesTypes,
44
24
  },
45
25
  parserOpts: { noteKeywords: noteKeywords },
46
26
  writerOpts: { commitsSort: ['subject', 'scope'] },