conventional-changelog-storm-software 0.1.0
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.
- package/LICENSE +201 -0
- package/README.md +278 -0
- package/dist/chunk-2MZWLEPP.js +132 -0
- package/dist/chunk-3KLR5ZGK.js +1 -0
- package/dist/chunk-5GQ7ZUDG.cjs +2 -0
- package/dist/chunk-63544DKM.js +153 -0
- package/dist/chunk-DL5576FZ.cjs +10 -0
- package/dist/chunk-HVVJTAOT.cjs +160 -0
- package/dist/chunk-I6KKIB6V.js +77 -0
- package/dist/chunk-IJLTWVLG.js +57 -0
- package/dist/chunk-KRZANN66.cjs +82 -0
- package/dist/chunk-KTGUQC7L.js +1 -0
- package/dist/chunk-LPCM2SVA.js +45 -0
- package/dist/chunk-M7BTBQHL.cjs +134 -0
- package/dist/chunk-O35EG2LQ.js +8 -0
- package/dist/chunk-RR5776TG.cjs +7 -0
- package/dist/chunk-S5TOCB3P.js +1 -0
- package/dist/chunk-SPHHWYOU.cjs +2 -0
- package/dist/chunk-UK5DQTL2.cjs +47 -0
- package/dist/chunk-UXD2EFE6.js +1 -0
- package/dist/chunk-UZZOYD6Y.cjs +2360 -0
- package/dist/chunk-XHJNEOAM.cjs +2 -0
- package/dist/chunk-YBJMQHWU.cjs +67 -0
- package/dist/chunk-ZLZS2G36.js +2353 -0
- package/dist/chunk-ZPVHPMDE.cjs +2 -0
- package/dist/commit-types.cjs +11 -0
- package/dist/commit-types.d.cts +130 -0
- package/dist/commit-types.d.ts +130 -0
- package/dist/commit-types.js +1 -0
- package/dist/index.cjs +36 -0
- package/dist/index.d.cts +16 -0
- package/dist/index.d.ts +16 -0
- package/dist/index.js +23 -0
- package/dist/parser.cjs +13 -0
- package/dist/parser.d.cts +12 -0
- package/dist/parser.d.ts +12 -0
- package/dist/parser.js +3 -0
- package/dist/types/commit-types.cjs +4 -0
- package/dist/types/commit-types.d.cts +19 -0
- package/dist/types/commit-types.d.ts +19 -0
- package/dist/types/commit-types.js +1 -0
- package/dist/types/config.cjs +5 -0
- package/dist/types/config.d.cts +67 -0
- package/dist/types/config.d.ts +67 -0
- package/dist/types/config.js +1 -0
- package/dist/types/index.cjs +8 -0
- package/dist/types/index.d.cts +5 -0
- package/dist/types/index.d.ts +5 -0
- package/dist/types/index.js +4 -0
- package/dist/types/misc.cjs +5 -0
- package/dist/types/misc.d.cts +3 -0
- package/dist/types/misc.d.ts +3 -0
- package/dist/types/misc.js +1 -0
- package/dist/types/preset.cjs +5 -0
- package/dist/types/preset.d.cts +12 -0
- package/dist/types/preset.d.ts +12 -0
- package/dist/types/preset.js +1 -0
- package/dist/types/write.cjs +5 -0
- package/dist/types/write.d.cts +78 -0
- package/dist/types/write.d.ts +78 -0
- package/dist/types/write.js +1 -0
- package/dist/utilities/constants.cjs +44 -0
- package/dist/utilities/constants.d.cts +75 -0
- package/dist/utilities/constants.d.ts +75 -0
- package/dist/utilities/constants.js +2 -0
- package/dist/utilities/helpers.cjs +25 -0
- package/dist/utilities/helpers.d.cts +30 -0
- package/dist/utilities/helpers.d.ts +30 -0
- package/dist/utilities/helpers.js +3 -0
- package/dist/utilities/index.cjs +66 -0
- package/dist/utilities/index.d.cts +6 -0
- package/dist/utilities/index.d.ts +6 -0
- package/dist/utilities/index.js +4 -0
- package/dist/utilities/options.cjs +14 -0
- package/dist/utilities/options.d.cts +12 -0
- package/dist/utilities/options.d.ts +12 -0
- package/dist/utilities/options.js +4 -0
- package/dist/whatBump.cjs +14 -0
- package/dist/whatBump.d.cts +6 -0
- package/dist/whatBump.d.ts +6 -0
- package/dist/whatBump.js +4 -0
- package/dist/writer.cjs +14 -0
- package/dist/writer.d.cts +13 -0
- package/dist/writer.d.ts +13 -0
- package/dist/writer.js +4 -0
- package/package.json +203 -0
- package/templates/templates/commit.hbd +29 -0
- package/templates/templates/footer.hbd +9 -0
- package/templates/templates/header.hbd +9 -0
- package/templates/templates/template.hbd +21 -0
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Commit types available for selection in commit messages.
|
|
3
|
+
*/
|
|
4
|
+
declare const COMMIT_TYPES: {
|
|
5
|
+
readonly chore: {
|
|
6
|
+
readonly description: "Other changes that don't modify src or test files";
|
|
7
|
+
readonly title: "Chore";
|
|
8
|
+
readonly emoji: "⚙️ ";
|
|
9
|
+
readonly semverBump: "patch";
|
|
10
|
+
readonly changelog: {
|
|
11
|
+
readonly title: "Miscellaneous";
|
|
12
|
+
readonly hidden: false;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
readonly fix: {
|
|
16
|
+
readonly description: "A change that resolves an issue previously identified with the package";
|
|
17
|
+
readonly title: "Bug Fix";
|
|
18
|
+
readonly emoji: "🪲 ";
|
|
19
|
+
readonly semverBump: "patch";
|
|
20
|
+
readonly changelog: {
|
|
21
|
+
readonly title: "Bug Fixes";
|
|
22
|
+
readonly hidden: false;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
readonly feat: {
|
|
26
|
+
readonly description: "A change that adds a new feature to the package";
|
|
27
|
+
readonly title: "Feature";
|
|
28
|
+
readonly emoji: "🔑 ";
|
|
29
|
+
readonly semverBump: "minor";
|
|
30
|
+
readonly changelog: {
|
|
31
|
+
readonly title: "Features";
|
|
32
|
+
readonly hidden: false;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
readonly ci: {
|
|
36
|
+
readonly description: "Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)";
|
|
37
|
+
readonly title: "Continuous Integration";
|
|
38
|
+
readonly emoji: "🧰 ";
|
|
39
|
+
readonly semverBump: "patch";
|
|
40
|
+
readonly changelog: {
|
|
41
|
+
readonly title: "Continuous Integration";
|
|
42
|
+
readonly hidden: false;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
readonly refactor: {
|
|
46
|
+
readonly description: "A code change that neither fixes a bug nor adds a feature";
|
|
47
|
+
readonly title: "Code Refactoring";
|
|
48
|
+
readonly emoji: "🧪 ";
|
|
49
|
+
readonly semverBump: "patch";
|
|
50
|
+
readonly changelog: {
|
|
51
|
+
readonly title: "Source Code Improvements";
|
|
52
|
+
readonly hidden: false;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
readonly style: {
|
|
56
|
+
readonly description: "Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)";
|
|
57
|
+
readonly title: "Style Improvements";
|
|
58
|
+
readonly emoji: "💎 ";
|
|
59
|
+
readonly semverBump: "patch";
|
|
60
|
+
readonly changelog: {
|
|
61
|
+
readonly title: "Style Improvements";
|
|
62
|
+
readonly hidden: false;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
readonly perf: {
|
|
66
|
+
readonly description: "A code change that improves performance";
|
|
67
|
+
readonly title: "Performance Improvement";
|
|
68
|
+
readonly emoji: "⏱️ ";
|
|
69
|
+
readonly semverBump: "patch";
|
|
70
|
+
readonly changelog: {
|
|
71
|
+
readonly title: "Performance Improvements";
|
|
72
|
+
readonly hidden: false;
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
readonly docs: {
|
|
76
|
+
readonly description: "A change that only includes documentation updates";
|
|
77
|
+
readonly title: "Documentation";
|
|
78
|
+
readonly emoji: "📜 ";
|
|
79
|
+
readonly semverBump: "none";
|
|
80
|
+
readonly changelog: {
|
|
81
|
+
readonly title: "Documentation";
|
|
82
|
+
readonly hidden: false;
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
readonly test: {
|
|
86
|
+
readonly description: "Adding missing tests or correcting existing tests";
|
|
87
|
+
readonly title: "Testing";
|
|
88
|
+
readonly emoji: "🚨 ";
|
|
89
|
+
readonly semverBump: "none";
|
|
90
|
+
readonly changelog: {
|
|
91
|
+
readonly title: "Testing";
|
|
92
|
+
readonly hidden: true;
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
readonly deps: {
|
|
96
|
+
readonly description: "Changes that add, update, or remove dependencies. This includes devDependencies and peerDependencies";
|
|
97
|
+
readonly title: "Dependencies";
|
|
98
|
+
readonly emoji: "📦 ";
|
|
99
|
+
readonly hidden: true;
|
|
100
|
+
readonly semverBump: "patch";
|
|
101
|
+
readonly changelog: {
|
|
102
|
+
readonly title: "Dependency Upgrades";
|
|
103
|
+
readonly hidden: false;
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
readonly build: {
|
|
107
|
+
readonly description: "Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)";
|
|
108
|
+
readonly title: "Build";
|
|
109
|
+
readonly emoji: "🛠 ";
|
|
110
|
+
readonly hidden: true;
|
|
111
|
+
readonly semverBump: "none";
|
|
112
|
+
readonly changelog: {
|
|
113
|
+
readonly title: "Build";
|
|
114
|
+
readonly hidden: true;
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
readonly release: {
|
|
118
|
+
readonly description: "Publishing a commit containing a newly released version";
|
|
119
|
+
readonly title: "Publish Release";
|
|
120
|
+
readonly emoji: "🚀 ";
|
|
121
|
+
readonly hidden: true;
|
|
122
|
+
readonly semverBump: "none";
|
|
123
|
+
readonly changelog: {
|
|
124
|
+
readonly title: "Publish Release";
|
|
125
|
+
readonly hidden: true;
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
|
|
130
|
+
export { COMMIT_TYPES };
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Commit types available for selection in commit messages.
|
|
3
|
+
*/
|
|
4
|
+
declare const COMMIT_TYPES: {
|
|
5
|
+
readonly chore: {
|
|
6
|
+
readonly description: "Other changes that don't modify src or test files";
|
|
7
|
+
readonly title: "Chore";
|
|
8
|
+
readonly emoji: "⚙️ ";
|
|
9
|
+
readonly semverBump: "patch";
|
|
10
|
+
readonly changelog: {
|
|
11
|
+
readonly title: "Miscellaneous";
|
|
12
|
+
readonly hidden: false;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
readonly fix: {
|
|
16
|
+
readonly description: "A change that resolves an issue previously identified with the package";
|
|
17
|
+
readonly title: "Bug Fix";
|
|
18
|
+
readonly emoji: "🪲 ";
|
|
19
|
+
readonly semverBump: "patch";
|
|
20
|
+
readonly changelog: {
|
|
21
|
+
readonly title: "Bug Fixes";
|
|
22
|
+
readonly hidden: false;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
readonly feat: {
|
|
26
|
+
readonly description: "A change that adds a new feature to the package";
|
|
27
|
+
readonly title: "Feature";
|
|
28
|
+
readonly emoji: "🔑 ";
|
|
29
|
+
readonly semverBump: "minor";
|
|
30
|
+
readonly changelog: {
|
|
31
|
+
readonly title: "Features";
|
|
32
|
+
readonly hidden: false;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
readonly ci: {
|
|
36
|
+
readonly description: "Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)";
|
|
37
|
+
readonly title: "Continuous Integration";
|
|
38
|
+
readonly emoji: "🧰 ";
|
|
39
|
+
readonly semverBump: "patch";
|
|
40
|
+
readonly changelog: {
|
|
41
|
+
readonly title: "Continuous Integration";
|
|
42
|
+
readonly hidden: false;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
readonly refactor: {
|
|
46
|
+
readonly description: "A code change that neither fixes a bug nor adds a feature";
|
|
47
|
+
readonly title: "Code Refactoring";
|
|
48
|
+
readonly emoji: "🧪 ";
|
|
49
|
+
readonly semverBump: "patch";
|
|
50
|
+
readonly changelog: {
|
|
51
|
+
readonly title: "Source Code Improvements";
|
|
52
|
+
readonly hidden: false;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
readonly style: {
|
|
56
|
+
readonly description: "Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)";
|
|
57
|
+
readonly title: "Style Improvements";
|
|
58
|
+
readonly emoji: "💎 ";
|
|
59
|
+
readonly semverBump: "patch";
|
|
60
|
+
readonly changelog: {
|
|
61
|
+
readonly title: "Style Improvements";
|
|
62
|
+
readonly hidden: false;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
readonly perf: {
|
|
66
|
+
readonly description: "A code change that improves performance";
|
|
67
|
+
readonly title: "Performance Improvement";
|
|
68
|
+
readonly emoji: "⏱️ ";
|
|
69
|
+
readonly semverBump: "patch";
|
|
70
|
+
readonly changelog: {
|
|
71
|
+
readonly title: "Performance Improvements";
|
|
72
|
+
readonly hidden: false;
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
readonly docs: {
|
|
76
|
+
readonly description: "A change that only includes documentation updates";
|
|
77
|
+
readonly title: "Documentation";
|
|
78
|
+
readonly emoji: "📜 ";
|
|
79
|
+
readonly semverBump: "none";
|
|
80
|
+
readonly changelog: {
|
|
81
|
+
readonly title: "Documentation";
|
|
82
|
+
readonly hidden: false;
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
readonly test: {
|
|
86
|
+
readonly description: "Adding missing tests or correcting existing tests";
|
|
87
|
+
readonly title: "Testing";
|
|
88
|
+
readonly emoji: "🚨 ";
|
|
89
|
+
readonly semverBump: "none";
|
|
90
|
+
readonly changelog: {
|
|
91
|
+
readonly title: "Testing";
|
|
92
|
+
readonly hidden: true;
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
readonly deps: {
|
|
96
|
+
readonly description: "Changes that add, update, or remove dependencies. This includes devDependencies and peerDependencies";
|
|
97
|
+
readonly title: "Dependencies";
|
|
98
|
+
readonly emoji: "📦 ";
|
|
99
|
+
readonly hidden: true;
|
|
100
|
+
readonly semverBump: "patch";
|
|
101
|
+
readonly changelog: {
|
|
102
|
+
readonly title: "Dependency Upgrades";
|
|
103
|
+
readonly hidden: false;
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
readonly build: {
|
|
107
|
+
readonly description: "Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)";
|
|
108
|
+
readonly title: "Build";
|
|
109
|
+
readonly emoji: "🛠 ";
|
|
110
|
+
readonly hidden: true;
|
|
111
|
+
readonly semverBump: "none";
|
|
112
|
+
readonly changelog: {
|
|
113
|
+
readonly title: "Build";
|
|
114
|
+
readonly hidden: true;
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
readonly release: {
|
|
118
|
+
readonly description: "Publishing a commit containing a newly released version";
|
|
119
|
+
readonly title: "Publish Release";
|
|
120
|
+
readonly emoji: "🚀 ";
|
|
121
|
+
readonly hidden: true;
|
|
122
|
+
readonly semverBump: "none";
|
|
123
|
+
readonly changelog: {
|
|
124
|
+
readonly title: "Publish Release";
|
|
125
|
+
readonly hidden: true;
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
|
|
130
|
+
export { COMMIT_TYPES };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { COMMIT_TYPES } from './chunk-2MZWLEPP.js';
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var chunkUZZOYD6Y_cjs = require('./chunk-UZZOYD6Y.cjs');
|
|
6
|
+
var chunkDL5576FZ_cjs = require('./chunk-DL5576FZ.cjs');
|
|
7
|
+
var chunkUK5DQTL2_cjs = require('./chunk-UK5DQTL2.cjs');
|
|
8
|
+
var chunkHVVJTAOT_cjs = require('./chunk-HVVJTAOT.cjs');
|
|
9
|
+
require('./chunk-KRZANN66.cjs');
|
|
10
|
+
var chunkYBJMQHWU_cjs = require('./chunk-YBJMQHWU.cjs');
|
|
11
|
+
var chunkM7BTBQHL_cjs = require('./chunk-M7BTBQHL.cjs');
|
|
12
|
+
require('./chunk-RR5776TG.cjs');
|
|
13
|
+
|
|
14
|
+
// src/index.ts
|
|
15
|
+
async function createPreset(config = {}) {
|
|
16
|
+
const options = await chunkUZZOYD6Y_cjs.resolveOptions(config);
|
|
17
|
+
return {
|
|
18
|
+
commits: {
|
|
19
|
+
ignore: config.ignoreCommits,
|
|
20
|
+
merges: false
|
|
21
|
+
},
|
|
22
|
+
parser: chunkDL5576FZ_cjs.createParserOpts(options.workspace.variant),
|
|
23
|
+
writer: await chunkHVVJTAOT_cjs.createWriterOpts(options),
|
|
24
|
+
whatBump: chunkUK5DQTL2_cjs.createWhatBump(options)
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
Object.defineProperty(exports, "CHANGELOG_COMMIT_TYPES", {
|
|
29
|
+
enumerable: true,
|
|
30
|
+
get: function () { return chunkYBJMQHWU_cjs.CHANGELOG_COMMITS; }
|
|
31
|
+
});
|
|
32
|
+
Object.defineProperty(exports, "COMMIT_TYPES", {
|
|
33
|
+
enumerable: true,
|
|
34
|
+
get: function () { return chunkM7BTBQHL_cjs.COMMIT_TYPES; }
|
|
35
|
+
});
|
|
36
|
+
exports.default = createPreset;
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export { COMMIT_TYPES } from './commit-types.cjs';
|
|
2
|
+
import { PresetConfig } from './types/config.cjs';
|
|
3
|
+
import { StormSoftwarePreset } from './types/preset.cjs';
|
|
4
|
+
export { CHANGELOG_COMMITS as CHANGELOG_COMMIT_TYPES } from './utilities/constants.cjs';
|
|
5
|
+
import '@storm-software/config/types';
|
|
6
|
+
import './types/write.cjs';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Create a preset configuration for Storm Software changelog conventions.
|
|
10
|
+
*
|
|
11
|
+
* @param config - The configuration object.
|
|
12
|
+
* @returns The preset configuration.
|
|
13
|
+
*/
|
|
14
|
+
declare function createPreset(config?: PresetConfig): Promise<StormSoftwarePreset>;
|
|
15
|
+
|
|
16
|
+
export { createPreset as default };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export { COMMIT_TYPES } from './commit-types.js';
|
|
2
|
+
import { PresetConfig } from './types/config.js';
|
|
3
|
+
import { StormSoftwarePreset } from './types/preset.js';
|
|
4
|
+
export { CHANGELOG_COMMITS as CHANGELOG_COMMIT_TYPES } from './utilities/constants.js';
|
|
5
|
+
import '@storm-software/config/types';
|
|
6
|
+
import './types/write.js';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Create a preset configuration for Storm Software changelog conventions.
|
|
10
|
+
*
|
|
11
|
+
* @param config - The configuration object.
|
|
12
|
+
* @returns The preset configuration.
|
|
13
|
+
*/
|
|
14
|
+
declare function createPreset(config?: PresetConfig): Promise<StormSoftwarePreset>;
|
|
15
|
+
|
|
16
|
+
export { createPreset as default };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { resolveOptions } from './chunk-ZLZS2G36.js';
|
|
2
|
+
import { createParserOpts } from './chunk-O35EG2LQ.js';
|
|
3
|
+
import { createWhatBump } from './chunk-LPCM2SVA.js';
|
|
4
|
+
import { createWriterOpts } from './chunk-63544DKM.js';
|
|
5
|
+
import './chunk-I6KKIB6V.js';
|
|
6
|
+
export { CHANGELOG_COMMITS as CHANGELOG_COMMIT_TYPES } from './chunk-IJLTWVLG.js';
|
|
7
|
+
export { COMMIT_TYPES } from './chunk-2MZWLEPP.js';
|
|
8
|
+
|
|
9
|
+
// src/index.ts
|
|
10
|
+
async function createPreset(config = {}) {
|
|
11
|
+
const options = await resolveOptions(config);
|
|
12
|
+
return {
|
|
13
|
+
commits: {
|
|
14
|
+
ignore: config.ignoreCommits,
|
|
15
|
+
merges: false
|
|
16
|
+
},
|
|
17
|
+
parser: createParserOpts(options.workspace.variant),
|
|
18
|
+
writer: await createWriterOpts(options),
|
|
19
|
+
whatBump: createWhatBump(options)
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export { createPreset as default };
|
package/dist/parser.cjs
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkDL5576FZ_cjs = require('./chunk-DL5576FZ.cjs');
|
|
4
|
+
require('./chunk-YBJMQHWU.cjs');
|
|
5
|
+
require('./chunk-M7BTBQHL.cjs');
|
|
6
|
+
require('./chunk-RR5776TG.cjs');
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
Object.defineProperty(exports, "createParserOpts", {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function () { return chunkDL5576FZ_cjs.createParserOpts; }
|
|
13
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Variant } from '@storm-software/config/types';
|
|
2
|
+
import { ParserConfig } from './types/config.cjs';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Create parser options based on the provided config.
|
|
6
|
+
*
|
|
7
|
+
* @param config The configuration object.
|
|
8
|
+
* @returns The parser options.
|
|
9
|
+
*/
|
|
10
|
+
declare function createParserOpts(variant: Variant): ParserConfig;
|
|
11
|
+
|
|
12
|
+
export { createParserOpts };
|
package/dist/parser.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Variant } from '@storm-software/config/types';
|
|
2
|
+
import { ParserConfig } from './types/config.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Create parser options based on the provided config.
|
|
6
|
+
*
|
|
7
|
+
* @param config The configuration object.
|
|
8
|
+
* @returns The parser options.
|
|
9
|
+
*/
|
|
10
|
+
declare function createParserOpts(variant: Variant): ParserConfig;
|
|
11
|
+
|
|
12
|
+
export { createParserOpts };
|
package/dist/parser.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { COMMIT_TYPES } from '../commit-types.cjs';
|
|
2
|
+
|
|
3
|
+
type CommitEnumItemProps = {
|
|
4
|
+
description: string;
|
|
5
|
+
title?: string;
|
|
6
|
+
emoji?: string;
|
|
7
|
+
hidden?: boolean;
|
|
8
|
+
};
|
|
9
|
+
type CommitTypeProps = CommitEnumItemProps & {
|
|
10
|
+
semverBump: "none" | "patch" | "minor" | "major";
|
|
11
|
+
changelog: {
|
|
12
|
+
title: string;
|
|
13
|
+
hidden: boolean;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
type DefaultCommitTypeKeys = keyof typeof COMMIT_TYPES;
|
|
17
|
+
type CommitTypesEnum<TCommitTypes extends DefaultCommitTypeKeys = DefaultCommitTypeKeys> = Record<TCommitTypes, CommitTypeProps>;
|
|
18
|
+
|
|
19
|
+
export type { CommitEnumItemProps, CommitTypeProps, CommitTypesEnum, DefaultCommitTypeKeys };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { COMMIT_TYPES } from '../commit-types.js';
|
|
2
|
+
|
|
3
|
+
type CommitEnumItemProps = {
|
|
4
|
+
description: string;
|
|
5
|
+
title?: string;
|
|
6
|
+
emoji?: string;
|
|
7
|
+
hidden?: boolean;
|
|
8
|
+
};
|
|
9
|
+
type CommitTypeProps = CommitEnumItemProps & {
|
|
10
|
+
semverBump: "none" | "patch" | "minor" | "major";
|
|
11
|
+
changelog: {
|
|
12
|
+
title: string;
|
|
13
|
+
hidden: boolean;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
type DefaultCommitTypeKeys = keyof typeof COMMIT_TYPES;
|
|
17
|
+
type CommitTypesEnum<TCommitTypes extends DefaultCommitTypeKeys = DefaultCommitTypeKeys> = Record<TCommitTypes, CommitTypeProps>;
|
|
18
|
+
|
|
19
|
+
export type { CommitEnumItemProps, CommitTypeProps, CommitTypesEnum, DefaultCommitTypeKeys };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { StormWorkspaceConfig } from '@storm-software/config/types';
|
|
2
|
+
|
|
3
|
+
type ChangelogCommitType = Record<string, {
|
|
4
|
+
type: string;
|
|
5
|
+
title: string;
|
|
6
|
+
hidden: boolean | undefined;
|
|
7
|
+
}>;
|
|
8
|
+
interface ChangelogCommitGroupType {
|
|
9
|
+
type: string;
|
|
10
|
+
section: string;
|
|
11
|
+
hidden?: boolean;
|
|
12
|
+
}
|
|
13
|
+
interface PresetConfig {
|
|
14
|
+
ignoreCommits?: string[];
|
|
15
|
+
issuePrefixes?: string[];
|
|
16
|
+
types?: ChangelogCommitType;
|
|
17
|
+
bumpStrict?: boolean;
|
|
18
|
+
scope?: string | string[];
|
|
19
|
+
issueUrlFormat?: string;
|
|
20
|
+
preMajor?: boolean;
|
|
21
|
+
formatDate?: (date: string | Date) => string;
|
|
22
|
+
}
|
|
23
|
+
interface ResolvedPresetOptions {
|
|
24
|
+
workspace: StormWorkspaceConfig;
|
|
25
|
+
ignoreCommits?: string[];
|
|
26
|
+
issuePrefixes: string[];
|
|
27
|
+
types: ChangelogCommitType;
|
|
28
|
+
bumpStrict: boolean;
|
|
29
|
+
scope?: string | string[];
|
|
30
|
+
issueUrlFormat: string;
|
|
31
|
+
commitUrlFormat: string;
|
|
32
|
+
compareUrlFormat: string;
|
|
33
|
+
userUrlFormat: string;
|
|
34
|
+
preMajor: boolean;
|
|
35
|
+
formatDate: (date: string | Date) => string;
|
|
36
|
+
}
|
|
37
|
+
interface CommitsConfig {
|
|
38
|
+
ignore?: string[];
|
|
39
|
+
merges: boolean;
|
|
40
|
+
}
|
|
41
|
+
type WhatBumpFunction = (commits: {
|
|
42
|
+
type: string;
|
|
43
|
+
scope?: string | undefined;
|
|
44
|
+
notes: {
|
|
45
|
+
title: string;
|
|
46
|
+
}[];
|
|
47
|
+
}[]) => {
|
|
48
|
+
level: number;
|
|
49
|
+
reason: string;
|
|
50
|
+
} | null;
|
|
51
|
+
interface WhatBumpConfig {
|
|
52
|
+
types: ChangelogCommitType;
|
|
53
|
+
bumpStrict?: boolean;
|
|
54
|
+
}
|
|
55
|
+
interface ParserConfig {
|
|
56
|
+
headerPattern?: RegExp;
|
|
57
|
+
headerCorrespondence?: string[];
|
|
58
|
+
breakingHeaderPattern?: RegExp;
|
|
59
|
+
noteKeywords?: string[];
|
|
60
|
+
revertPattern?: RegExp;
|
|
61
|
+
revertCorrespondence?: string[];
|
|
62
|
+
issuePrefixes?: string[];
|
|
63
|
+
mergePattern?: RegExp;
|
|
64
|
+
mergeCorrespondence?: string[];
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export type { ChangelogCommitGroupType, ChangelogCommitType, CommitsConfig, ParserConfig, PresetConfig, ResolvedPresetOptions, WhatBumpConfig, WhatBumpFunction };
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { StormWorkspaceConfig } from '@storm-software/config/types';
|
|
2
|
+
|
|
3
|
+
type ChangelogCommitType = Record<string, {
|
|
4
|
+
type: string;
|
|
5
|
+
title: string;
|
|
6
|
+
hidden: boolean | undefined;
|
|
7
|
+
}>;
|
|
8
|
+
interface ChangelogCommitGroupType {
|
|
9
|
+
type: string;
|
|
10
|
+
section: string;
|
|
11
|
+
hidden?: boolean;
|
|
12
|
+
}
|
|
13
|
+
interface PresetConfig {
|
|
14
|
+
ignoreCommits?: string[];
|
|
15
|
+
issuePrefixes?: string[];
|
|
16
|
+
types?: ChangelogCommitType;
|
|
17
|
+
bumpStrict?: boolean;
|
|
18
|
+
scope?: string | string[];
|
|
19
|
+
issueUrlFormat?: string;
|
|
20
|
+
preMajor?: boolean;
|
|
21
|
+
formatDate?: (date: string | Date) => string;
|
|
22
|
+
}
|
|
23
|
+
interface ResolvedPresetOptions {
|
|
24
|
+
workspace: StormWorkspaceConfig;
|
|
25
|
+
ignoreCommits?: string[];
|
|
26
|
+
issuePrefixes: string[];
|
|
27
|
+
types: ChangelogCommitType;
|
|
28
|
+
bumpStrict: boolean;
|
|
29
|
+
scope?: string | string[];
|
|
30
|
+
issueUrlFormat: string;
|
|
31
|
+
commitUrlFormat: string;
|
|
32
|
+
compareUrlFormat: string;
|
|
33
|
+
userUrlFormat: string;
|
|
34
|
+
preMajor: boolean;
|
|
35
|
+
formatDate: (date: string | Date) => string;
|
|
36
|
+
}
|
|
37
|
+
interface CommitsConfig {
|
|
38
|
+
ignore?: string[];
|
|
39
|
+
merges: boolean;
|
|
40
|
+
}
|
|
41
|
+
type WhatBumpFunction = (commits: {
|
|
42
|
+
type: string;
|
|
43
|
+
scope?: string | undefined;
|
|
44
|
+
notes: {
|
|
45
|
+
title: string;
|
|
46
|
+
}[];
|
|
47
|
+
}[]) => {
|
|
48
|
+
level: number;
|
|
49
|
+
reason: string;
|
|
50
|
+
} | null;
|
|
51
|
+
interface WhatBumpConfig {
|
|
52
|
+
types: ChangelogCommitType;
|
|
53
|
+
bumpStrict?: boolean;
|
|
54
|
+
}
|
|
55
|
+
interface ParserConfig {
|
|
56
|
+
headerPattern?: RegExp;
|
|
57
|
+
headerCorrespondence?: string[];
|
|
58
|
+
breakingHeaderPattern?: RegExp;
|
|
59
|
+
noteKeywords?: string[];
|
|
60
|
+
revertPattern?: RegExp;
|
|
61
|
+
revertCorrespondence?: string[];
|
|
62
|
+
issuePrefixes?: string[];
|
|
63
|
+
mergePattern?: RegExp;
|
|
64
|
+
mergeCorrespondence?: string[];
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export type { ChangelogCommitGroupType, ChangelogCommitType, CommitsConfig, ParserConfig, PresetConfig, ResolvedPresetOptions, WhatBumpConfig, WhatBumpFunction };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '../chunk-S5TOCB3P.js';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { ChangelogCommitGroupType, ChangelogCommitType, CommitsConfig, ParserConfig, PresetConfig, ResolvedPresetOptions, WhatBumpConfig, WhatBumpFunction } from './config.cjs';
|
|
2
|
+
export { ArrayElement } from './misc.cjs';
|
|
3
|
+
export { StormSoftwarePreset } from './preset.cjs';
|
|
4
|
+
export { CommitGroup, CommitKnownProps, CommitNote, CommitNoteGroup, Context, FinalTemplatesOptions, Reference, TemplatesOptions, TransformedCommit, WriteConfig } from './write.cjs';
|
|
5
|
+
import '@storm-software/config/types';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { ChangelogCommitGroupType, ChangelogCommitType, CommitsConfig, ParserConfig, PresetConfig, ResolvedPresetOptions, WhatBumpConfig, WhatBumpFunction } from './config.js';
|
|
2
|
+
export { ArrayElement } from './misc.js';
|
|
3
|
+
export { StormSoftwarePreset } from './preset.js';
|
|
4
|
+
export { CommitGroup, CommitKnownProps, CommitNote, CommitNoteGroup, Context, FinalTemplatesOptions, Reference, TemplatesOptions, TransformedCommit, WriteConfig } from './write.js';
|
|
5
|
+
import '@storm-software/config/types';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '../chunk-KTGUQC7L.js';
|