git-release-manager 0.0.0 → 0.0.4
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/dist/src/PackageJson.js +3 -0
- package/dist/src/PackageJson.js.map +1 -0
- package/dist/src/cli/types/ChangelogCliArgs.js +3 -0
- package/dist/src/cli/types/ChangelogCliArgs.js.map +1 -0
- package/dist/src/cli/types/ChnagelogCliArgs.js +3 -0
- package/dist/src/cli/types/ChnagelogCliArgs.js.map +1 -0
- package/dist/src/cli/types/CliArgs.js +3 -0
- package/dist/src/cli/types/CliArgs.js.map +1 -0
- package/dist/src/config/configLoader.js +61 -0
- package/dist/src/config/configLoader.js.map +1 -0
- package/dist/src/config/configManager.js +66 -0
- package/dist/src/config/configManager.js.map +1 -0
- package/dist/src/config/constants.js +10 -0
- package/dist/src/config/constants.js.map +1 -0
- package/dist/src/config/defaults/config.json +232 -0
- package/dist/src/config/types/ChannelType.js +3 -0
- package/dist/src/config/types/ChannelType.js.map +1 -0
- package/dist/src/config/types/CommitType.js +3 -0
- package/dist/src/config/types/CommitType.js.map +1 -0
- package/dist/src/config/types/Config.js +3 -0
- package/dist/src/config/types/Config.js.map +1 -0
- package/dist/src/config/types/FileGroups.js +3 -0
- package/dist/src/config/types/FileGroups.js.map +1 -0
- package/dist/src/config/types/LinkType.js +3 -0
- package/dist/src/config/types/LinkType.js.map +1 -0
- package/dist/src/config/types/MentionType.js +3 -0
- package/dist/src/config/types/MentionType.js.map +1 -0
- package/dist/src/config/types/NoteType.js +3 -0
- package/dist/src/config/types/NoteType.js.map +1 -0
- package/dist/src/config/types/Options.js +3 -0
- package/dist/src/config/types/Options.js.map +1 -0
- package/dist/src/core/app-old.js +35 -0
- package/dist/src/core/app-old.js.map +1 -0
- package/dist/src/core/app.js +19 -0
- package/dist/src/core/app.js.map +1 -0
- package/dist/src/core/changelog/app.js +19 -0
- package/dist/src/core/changelog/app.js.map +1 -0
- package/dist/src/core/gitOperations.js +95 -0
- package/dist/src/core/gitOperations.js.map +1 -0
- package/dist/src/core/rangeOperations.js +14 -0
- package/dist/src/core/rangeOperations.js.map +1 -0
- package/dist/src/core/templateOperations.js +157 -0
- package/dist/src/core/templateOperations.js.map +1 -0
- package/dist/src/core/types/ChangeInformation.js +3 -0
- package/dist/src/core/types/ChangeInformation.js.map +1 -0
- package/dist/src/core/types/Context.js +3 -0
- package/dist/src/core/types/Context.js.map +1 -0
- package/dist/src/core/types/RangeDetails.js +3 -0
- package/dist/src/core/types/RangeDetails.js.map +1 -0
- package/dist/src/core/types/RangeInfo.js +3 -0
- package/dist/src/core/types/RangeInfo.js.map +1 -0
- package/dist/src/core/types/ReferenceTypesEnum.js +12 -0
- package/dist/src/core/types/ReferenceTypesEnum.js.map +1 -0
- package/dist/src/core/types/Repository.js +3 -0
- package/dist/src/core/types/Repository.js.map +1 -0
- package/dist/src/git/commits/commitProcessor.js +52 -0
- package/dist/src/git/commits/commitProcessor.js.map +1 -0
- package/dist/src/git/commits/gitLogFetcher.js +27 -0
- package/dist/src/git/commits/gitLogFetcher.js.map +1 -0
- package/dist/src/git/commits/index.js +136 -0
- package/dist/src/git/commits/index.js.map +1 -0
- package/dist/src/git/commits/profileHandler.js +43 -0
- package/dist/src/git/commits/profileHandler.js.map +1 -0
- package/dist/src/git/commits/regexHandlers.js +27 -0
- package/dist/src/git/commits/regexHandlers.js.map +1 -0
- package/dist/src/git/commits.js +136 -0
- package/dist/src/git/commits.js.map +1 -0
- package/dist/src/git/context/branchHandler.js +23 -0
- package/dist/src/git/context/branchHandler.js.map +1 -0
- package/dist/src/git/context/commitHandler.js +30 -0
- package/dist/src/git/context/commitHandler.js.map +1 -0
- package/dist/src/git/context/index.js +31 -0
- package/dist/src/git/context/index.js.map +1 -0
- package/dist/src/git/context/remoteHandler.js +25 -0
- package/dist/src/git/context/remoteHandler.js.map +1 -0
- package/dist/src/git/context/statusHandler.js +21 -0
- package/dist/src/git/context/statusHandler.js.map +1 -0
- package/dist/src/git/context/tagHandler.js +21 -0
- package/dist/src/git/context/tagHandler.js.map +1 -0
- package/dist/src/git/context.js +95 -0
- package/dist/src/git/context.js.map +1 -0
- package/dist/src/git/types/Author.js +3 -0
- package/dist/src/git/types/Author.js.map +1 -0
- package/dist/src/git/types/BranchInfo.js +3 -0
- package/dist/src/git/types/BranchInfo.js.map +1 -0
- package/dist/src/git/types/CommitContent.js +3 -0
- package/dist/src/git/types/CommitContent.js.map +1 -0
- package/dist/src/git/types/CommitInfo.js +3 -0
- package/dist/src/git/types/CommitInfo.js.map +1 -0
- package/dist/src/git/types/CommitType.js +3 -0
- package/dist/src/git/types/CommitType.js.map +1 -0
- package/dist/src/git/types/CommitType2.js +3 -0
- package/dist/src/git/types/CommitType2.js.map +1 -0
- package/dist/src/git/types/GitCommit.js +3 -0
- package/dist/src/git/types/GitCommit.js.map +1 -0
- package/dist/src/git/types/GitContext.js +3 -0
- package/dist/src/git/types/GitContext.js.map +1 -0
- package/dist/src/git/types/Link.js +3 -0
- package/dist/src/git/types/Link.js.map +1 -0
- package/dist/src/git/types/LinkType-.js +3 -0
- package/dist/src/git/types/LinkType-.js.map +1 -0
- package/dist/src/git/types/LinkType.js +3 -0
- package/dist/src/git/types/LinkType.js.map +1 -0
- package/dist/src/git/types/Mention.js +3 -0
- package/dist/src/git/types/Mention.js.map +1 -0
- package/dist/src/git/types/MentionType-.js +3 -0
- package/dist/src/git/types/MentionType-.js.map +1 -0
- package/dist/src/git/types/MentionType.js +3 -0
- package/dist/src/git/types/MentionType.js.map +1 -0
- package/dist/src/git/types/Note.js +3 -0
- package/dist/src/git/types/Note.js.map +1 -0
- package/dist/src/git/types/RemoteInfo.js +3 -0
- package/dist/src/git/types/RemoteInfo.js.map +1 -0
- package/dist/src/git/types/StatusInfo.js +3 -0
- package/dist/src/git/types/StatusInfo.js.map +1 -0
- package/dist/src/git/types/TagInfo.js +3 -0
- package/dist/src/git/types/TagInfo.js.map +1 -0
- package/dist/src/git/utils/branchUtils.js +56 -0
- package/dist/src/git/utils/branchUtils.js.map +1 -0
- package/dist/src/git/utils/commitUtils.js +50 -0
- package/dist/src/git/utils/commitUtils.js.map +1 -0
- package/dist/src/git/utils/logUtils.js +18 -0
- package/dist/src/git/utils/logUtils.js.map +1 -0
- package/dist/src/git/utils/refUtils.js +41 -0
- package/dist/src/git/utils/refUtils.js.map +1 -0
- package/dist/src/git/utils/referenceUtils.js +138 -0
- package/dist/src/git/utils/referenceUtils.js.map +1 -0
- package/dist/src/git/utils/tagUtils.js +54 -0
- package/dist/src/git/utils/tagUtils.js.map +1 -0
- package/dist/src/index.js +90 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/main.js +16 -0
- package/dist/src/main.js.map +1 -0
- package/dist/src/modules/changelog/templateOperations.js +129 -0
- package/dist/src/modules/changelog/templateOperations.js.map +1 -0
- package/dist/src/modules/changes/types/ChangeInformation.js +3 -0
- package/dist/src/modules/changes/types/ChangeInformation.js.map +1 -0
- package/dist/src/modules/changes/types/Context.js +3 -0
- package/dist/src/modules/changes/types/Context.js.map +1 -0
- package/dist/src/modules/changes/types/RangeDetail.js +3 -0
- package/dist/src/modules/changes/types/RangeDetail.js.map +1 -0
- package/dist/src/modules/changes/types/RangeDetails.js +3 -0
- package/dist/src/modules/changes/types/RangeDetails.js.map +1 -0
- package/dist/src/modules/changes/types/RangeInfo.js +8 -0
- package/dist/src/modules/changes/types/RangeInfo.js.map +1 -0
- package/dist/src/modules/changes/types/RangeSummary.js +3 -0
- package/dist/src/modules/changes/types/RangeSummary.js.map +1 -0
- package/dist/src/modules/changes/types/ReferenceTypesEnum.js +12 -0
- package/dist/src/modules/changes/types/ReferenceTypesEnum.js.map +1 -0
- package/dist/src/modules/git/commits/commitProcessor.js +52 -0
- package/dist/src/modules/git/commits/commitProcessor.js.map +1 -0
- package/dist/src/modules/git/commits/gitLogFetcher.js +27 -0
- package/dist/src/modules/git/commits/gitLogFetcher.js.map +1 -0
- package/dist/src/modules/git/commits/index.js +136 -0
- package/dist/src/modules/git/commits/index.js.map +1 -0
- package/dist/src/modules/git/commits/profileHandler.js +45 -0
- package/dist/src/modules/git/commits/profileHandler.js.map +1 -0
- package/dist/src/modules/git/commits/regexHandlers.js +27 -0
- package/dist/src/modules/git/commits/regexHandlers.js.map +1 -0
- package/dist/src/modules/git/context/branchHandler.js +23 -0
- package/dist/src/modules/git/context/branchHandler.js.map +1 -0
- package/dist/src/modules/git/context/commitHandler.js +34 -0
- package/dist/src/modules/git/context/commitHandler.js.map +1 -0
- package/dist/src/modules/git/context/index.js +28 -0
- package/dist/src/modules/git/context/index.js.map +1 -0
- package/dist/src/modules/git/context/remoteHandler.js +25 -0
- package/dist/src/modules/git/context/remoteHandler.js.map +1 -0
- package/dist/src/modules/git/context/statusHandler.js +21 -0
- package/dist/src/modules/git/context/statusHandler.js.map +1 -0
- package/dist/src/modules/git/context/tagHandler.js +33 -0
- package/dist/src/modules/git/context/tagHandler.js.map +1 -0
- package/dist/src/modules/git/gitOperations.js +56 -0
- package/dist/src/modules/git/gitOperations.js.map +1 -0
- package/dist/src/modules/git/types/Author.js +3 -0
- package/dist/src/modules/git/types/Author.js.map +1 -0
- package/dist/src/modules/git/types/Branch.js +3 -0
- package/dist/src/modules/git/types/Branch.js.map +1 -0
- package/dist/src/modules/git/types/BranchInfo.js +3 -0
- package/dist/src/modules/git/types/BranchInfo.js.map +1 -0
- package/dist/src/modules/git/types/CommitContent.js +3 -0
- package/dist/src/modules/git/types/CommitContent.js.map +1 -0
- package/dist/src/modules/git/types/CommitInfo.js +3 -0
- package/dist/src/modules/git/types/CommitInfo.js.map +1 -0
- package/dist/src/modules/git/types/CommitType.js +3 -0
- package/dist/src/modules/git/types/CommitType.js.map +1 -0
- package/dist/src/modules/git/types/GitCommit.js +3 -0
- package/dist/src/modules/git/types/GitCommit.js.map +1 -0
- package/dist/src/modules/git/types/GitContext.js +3 -0
- package/dist/src/modules/git/types/GitContext.js.map +1 -0
- package/dist/src/modules/git/types/GitReference.js +3 -0
- package/dist/src/modules/git/types/GitReference.js.map +1 -0
- package/dist/src/modules/git/types/Link.js +3 -0
- package/dist/src/modules/git/types/Link.js.map +1 -0
- package/dist/src/modules/git/types/Mention.js +3 -0
- package/dist/src/modules/git/types/Mention.js.map +1 -0
- package/dist/src/modules/git/types/Note.js +3 -0
- package/dist/src/modules/git/types/Note.js.map +1 -0
- package/dist/src/modules/git/types/RemoteInfo.js +3 -0
- package/dist/src/modules/git/types/RemoteInfo.js.map +1 -0
- package/dist/src/modules/git/types/Repository.js +3 -0
- package/dist/src/modules/git/types/Repository.js.map +1 -0
- package/dist/src/modules/git/types/StatusInfo.js +3 -0
- package/dist/src/modules/git/types/StatusInfo.js.map +1 -0
- package/dist/src/modules/git/types/Tag.js +3 -0
- package/dist/src/modules/git/types/Tag.js.map +1 -0
- package/dist/src/modules/git/types/TagInfo.js +3 -0
- package/dist/src/modules/git/types/TagInfo.js.map +1 -0
- package/dist/src/modules/git/utils/branchUtils.js +56 -0
- package/dist/src/modules/git/utils/branchUtils.js.map +1 -0
- package/dist/src/modules/git/utils/commitUtils.js +50 -0
- package/dist/src/modules/git/utils/commitUtils.js.map +1 -0
- package/dist/src/modules/git/utils/logUtils.js +18 -0
- package/dist/src/modules/git/utils/logUtils.js.map +1 -0
- package/dist/src/modules/git/utils/rangeOperations.js +14 -0
- package/dist/src/modules/git/utils/rangeOperations.js.map +1 -0
- package/dist/src/modules/git/utils/refUtils.js +41 -0
- package/dist/src/modules/git/utils/refUtils.js.map +1 -0
- package/dist/src/modules/git/utils/referenceUtils.js +132 -0
- package/dist/src/modules/git/utils/referenceUtils.js.map +1 -0
- package/dist/src/modules/git/utils/tagUtils.js +54 -0
- package/dist/src/modules/git/utils/tagUtils.js.map +1 -0
- package/dist/src/modules/output/writer.js +46 -0
- package/dist/src/modules/output/writer.js.map +1 -0
- package/dist/src/modules/repository/types/Repository.js +3 -0
- package/dist/src/modules/repository/types/Repository.js.map +1 -0
- package/dist/src/modules/sections/contributors.js +50 -0
- package/dist/src/modules/sections/contributors.js.map +1 -0
- package/dist/src/modules/sections/grouping.js +64 -0
- package/dist/src/modules/sections/grouping.js.map +1 -0
- package/dist/src/modules/sections/index.js +19 -0
- package/dist/src/modules/sections/index.js.map +1 -0
- package/dist/src/modules/sections/summarizing.js +75 -0
- package/dist/src/modules/sections/summarizing.js.map +1 -0
- package/dist/src/modules/sections/types/Contributor.js +3 -0
- package/dist/src/modules/sections/types/Contributor.js.map +1 -0
- package/dist/src/modules/sections/types/Group.js +3 -0
- package/dist/src/modules/sections/types/Group.js.map +1 -0
- package/dist/src/modules/sections/types/SectionSummary.js +3 -0
- package/dist/src/modules/sections/types/SectionSummary.js.map +1 -0
- package/dist/src/modules/sections/types/Sections.js +3 -0
- package/dist/src/modules/sections/types/Sections.js.map +1 -0
- package/dist/src/modules/templates/constants.js +10 -0
- package/dist/src/modules/templates/constants.js.map +1 -0
- package/dist/src/modules/templates/defaults/changelog.detailed.ejs +111 -0
- package/dist/src/modules/templates/defaults/changelog.ejs +68 -0
- package/dist/src/modules/templates/templateRenderer.js +46 -0
- package/dist/src/modules/templates/templateRenderer.js.map +1 -0
- package/dist/src/modules/templates/templateResolver.js +70 -0
- package/dist/src/modules/templates/templateResolver.js.map +1 -0
- package/dist/src/output/writer.js +46 -0
- package/dist/src/output/writer.js.map +1 -0
- package/dist/src/sections/contributors.js +50 -0
- package/dist/src/sections/contributors.js.map +1 -0
- package/dist/src/sections/grouping.js +70 -0
- package/dist/src/sections/grouping.js.map +1 -0
- package/dist/src/sections/index.js +20 -0
- package/dist/src/sections/index.js.map +1 -0
- package/dist/src/sections/summarizing.js +79 -0
- package/dist/src/sections/summarizing.js.map +1 -0
- package/dist/src/sections/types/Contributor.js +15 -0
- package/dist/src/sections/types/Contributor.js.map +1 -0
- package/dist/src/sections/types/Group.js +3 -0
- package/dist/src/sections/types/Group.js.map +1 -0
- package/dist/src/sections/types/SectionSummary.js +13 -0
- package/dist/src/sections/types/SectionSummary.js.map +1 -0
- package/dist/src/sections/types/Sections.js +3 -0
- package/dist/src/sections/types/Sections.js.map +1 -0
- package/dist/src/templates/constants.js +10 -0
- package/dist/src/templates/constants.js.map +1 -0
- package/dist/src/templates/defaults/changelog.detailed.ejs +111 -0
- package/dist/src/templates/defaults/changelog.ejs +68 -0
- package/dist/src/templates/index.js +100 -0
- package/dist/src/templates/index.js.map +1 -0
- package/dist/src/templates/templateRenderer.js +46 -0
- package/dist/src/templates/templateRenderer.js.map +1 -0
- package/dist/src/templates/templateResolver.js +70 -0
- package/dist/src/templates/templateResolver.js.map +1 -0
- package/dist/src/types/PackageJson.js +3 -0
- package/dist/src/types/PackageJson.js.map +1 -0
- package/dist/src/utils/cmd.js +27 -0
- package/dist/src/utils/cmd.js.map +1 -0
- package/dist/src/utils/date.js +20 -0
- package/dist/src/utils/date.js.map +1 -0
- package/dist/src/utils/git-utils.js +279 -0
- package/dist/src/utils/git-utils.js.map +1 -0
- package/dist/src/utils/helpers.js +10 -0
- package/dist/src/utils/helpers.js.map +1 -0
- package/dist/test/config/configLoader/loadConfigFile.test.js +94 -0
- package/dist/test/config/configLoader/loadConfigFile.test.js.map +1 -0
- package/dist/test/config/configManager/readConfig.test.js +124 -0
- package/dist/test/config/configManager/readConfig.test.js.map +1 -0
- package/package.json +7 -7
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PackageJson.js","sourceRoot":"","sources":["../../src/PackageJson.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChangelogCliArgs.js","sourceRoot":"","sources":["../../../../src/cli/types/ChangelogCliArgs.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChnagelogCliArgs.js","sourceRoot":"","sources":["../../../../src/cli/types/ChnagelogCliArgs.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CliArgs.js","sourceRoot":"","sources":["../../../../src/cli/types/CliArgs.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.loadConfigFile = loadConfigFile;
|
|
37
|
+
const fs = __importStar(require("fs"));
|
|
38
|
+
async function loadConfigFile(filePath) {
|
|
39
|
+
try {
|
|
40
|
+
const configContent = await fs.promises.readFile(filePath, 'utf-8');
|
|
41
|
+
const config = JSON.parse(configContent);
|
|
42
|
+
// Convert helper functions from string to function
|
|
43
|
+
if (config.helpers) {
|
|
44
|
+
Object.keys(config.helpers).forEach(key => {
|
|
45
|
+
const helperKey = key;
|
|
46
|
+
if (typeof config.helpers[helperKey] === 'string') {
|
|
47
|
+
// eslint-disable-next-line no-eval
|
|
48
|
+
config.helpers[helperKey] = eval(`(${config.helpers[helperKey]})`);
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
return config;
|
|
53
|
+
}
|
|
54
|
+
catch (error) {
|
|
55
|
+
if (error.code === 'ENOENT') {
|
|
56
|
+
return {}; // If the file is not found, return an empty object
|
|
57
|
+
}
|
|
58
|
+
throw error; //Rethrow other errors
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
//# sourceMappingURL=configLoader.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"configLoader.js","sourceRoot":"","sources":["../../../src/config/configLoader.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,wCAuBC;AA1BD,uCAAwB;AAGjB,KAAK,UAAU,cAAc,CAAC,QAAgB;IACjD,IAAI,CAAC;QACD,MAAM,aAAa,GAAG,MAAM,EAAE,CAAC,QAAQ,CAAC,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAA;QACnE,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,aAAa,CAAoB,CAAA;QAE3D,mDAAmD;QACnD,IAAI,MAAM,CAAC,OAAO,EAAE,CAAC;YACjB,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE;gBACtC,MAAM,SAAS,GAAG,GAA8B,CAAA;gBAChD,IAAI,OAAO,MAAM,CAAC,OAAQ,CAAC,SAAS,CAAC,KAAK,QAAQ,EAAE,CAAC;oBACjD,mCAAmC;oBACnC,MAAM,CAAC,OAAQ,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,IAAI,MAAM,CAAC,OAAQ,CAAC,SAAS,CAAC,GAAG,CAAC,CAAA;gBACxE,CAAC;YACL,CAAC,CAAC,CAAA;QACN,CAAC;QAED,OAAO,MAAM,CAAA;IACjB,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACb,IAAK,KAA+B,CAAC,IAAI,KAAK,QAAQ,EAAE,CAAC;YACrD,OAAO,EAAE,CAAA,CAAC,mDAAmD;QACjE,CAAC;QACD,MAAM,KAAK,CAAA,CAAC,sBAAsB;IACtC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.readConfig = readConfig;
|
|
37
|
+
const path = __importStar(require("path"));
|
|
38
|
+
const fs = __importStar(require("fs"));
|
|
39
|
+
const configLoader_1 = require("./configLoader");
|
|
40
|
+
const constants_1 = require("./constants");
|
|
41
|
+
async function readConfig(customConfigPath = null, environment = null) {
|
|
42
|
+
const envSuffix = environment ? `.${environment}` : '';
|
|
43
|
+
// Handle custom config path
|
|
44
|
+
let finalCustomConfigPath = customConfigPath ? path.resolve(customConfigPath.replace(/\.json$/, `${envSuffix}.json`)) : null;
|
|
45
|
+
let customConfig = {};
|
|
46
|
+
if (finalCustomConfigPath && fs.existsSync(finalCustomConfigPath)) {
|
|
47
|
+
customConfig = await (0, configLoader_1.loadConfigFile)(finalCustomConfigPath);
|
|
48
|
+
}
|
|
49
|
+
let localConfig = {};
|
|
50
|
+
if (Object.keys(customConfig).length === 0) {
|
|
51
|
+
// Only load local config if custom config is empty
|
|
52
|
+
let finalLocalConfigPath = constants_1.LOCAL_CONFIG_PATH.replace(/\.json$/, `${envSuffix}.json`);
|
|
53
|
+
localConfig = fs.existsSync(finalLocalConfigPath) ? await (0, configLoader_1.loadConfigFile)(finalLocalConfigPath) : {};
|
|
54
|
+
}
|
|
55
|
+
// Handle default config path
|
|
56
|
+
let defaultConfigPath = constants_1.DEFAULT_CONFIG_PATH.replace(/\.json$/, `${envSuffix}.json`);
|
|
57
|
+
let defaultConfig = fs.existsSync(defaultConfigPath) ? await (0, configLoader_1.loadConfigFile)(defaultConfigPath) : await (0, configLoader_1.loadConfigFile)(constants_1.DEFAULT_CONFIG_PATH);
|
|
58
|
+
// Merge configurations with condition: default < (local if custom is empty) < custom
|
|
59
|
+
const result = {
|
|
60
|
+
...defaultConfig,
|
|
61
|
+
...localConfig,
|
|
62
|
+
...customConfig,
|
|
63
|
+
};
|
|
64
|
+
return result;
|
|
65
|
+
}
|
|
66
|
+
//# sourceMappingURL=configManager.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"configManager.js","sourceRoot":"","sources":["../../../src/config/configManager.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,gCA6BC;AAnCD,2CAA4B;AAC5B,uCAAwB;AAExB,iDAA+C;AAC/C,2CAAoE;AAE7D,KAAK,UAAU,UAAU,CAAC,mBAAkC,IAAI,EAAE,cAA6B,IAAI;IACtG,MAAM,SAAS,GAAG,WAAW,CAAC,CAAC,CAAC,IAAI,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAA;IAEtD,4BAA4B;IAC5B,IAAI,qBAAqB,GAAG,gBAAgB,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,gBAAgB,CAAC,OAAO,CAAC,SAAS,EAAE,GAAG,SAAS,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAA;IAC5H,IAAI,YAAY,GAAG,EAAE,CAAA;IACrB,IAAI,qBAAqB,IAAI,EAAE,CAAC,UAAU,CAAC,qBAAqB,CAAC,EAAE,CAAC;QAChE,YAAY,GAAG,MAAM,IAAA,6BAAc,EAAC,qBAAqB,CAAC,CAAA;IAC9D,CAAC;IAED,IAAI,WAAW,GAAG,EAAE,CAAA;IACpB,IAAI,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACzC,mDAAmD;QACnD,IAAI,oBAAoB,GAAG,6BAAiB,CAAC,OAAO,CAAC,SAAS,EAAE,GAAG,SAAS,OAAO,CAAC,CAAA;QACpF,WAAW,GAAG,EAAE,CAAC,UAAU,CAAC,oBAAoB,CAAC,CAAC,CAAC,CAAC,MAAM,IAAA,6BAAc,EAAC,oBAAoB,CAAC,CAAC,CAAC,CAAC,EAAE,CAAA;IACvG,CAAC;IAED,6BAA6B;IAC7B,IAAI,iBAAiB,GAAG,+BAAmB,CAAC,OAAO,CAAC,SAAS,EAAE,GAAG,SAAS,OAAO,CAAC,CAAA;IACnF,IAAI,aAAa,GAAG,EAAE,CAAC,UAAU,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC,MAAM,IAAA,6BAAc,EAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC,MAAM,IAAA,6BAAc,EAAC,+BAAmB,CAAC,CAAA;IAE1I,qFAAqF;IACrF,MAAM,MAAM,GAAG;QACX,GAAG,aAAa;QAChB,GAAG,WAAW;QACd,GAAG,YAAY;KACR,CAAA;IAEX,OAAO,MAAM,CAAA;AACjB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.LOCAL_CONFIG_PATH = exports.DEFAULT_CONFIG_PATH = void 0;
|
|
7
|
+
const path_1 = __importDefault(require("path"));
|
|
8
|
+
exports.DEFAULT_CONFIG_PATH = path_1.default.resolve(__dirname, 'defaults/config.json');
|
|
9
|
+
exports.LOCAL_CONFIG_PATH = path_1.default.resolve(process.cwd(), '.grm/config.json');
|
|
10
|
+
//# sourceMappingURL=constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/config/constants.ts"],"names":[],"mappings":";;;;;;AAAA,gDAAuB;AAEV,QAAA,mBAAmB,GAAG,cAAI,CAAC,OAAO,CAAC,SAAS,EAAE,sBAAsB,CAAC,CAAA;AACrE,QAAA,iBAAiB,GAAG,cAAI,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,kBAAkB,CAAC,CAAA"}
|
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
{
|
|
2
|
+
"appName": "Git Release Manager",
|
|
3
|
+
"output": "stdout",
|
|
4
|
+
"tag": {
|
|
5
|
+
"format": "^v(\\d+)\\.(\\d+)\\.(\\d+)(?:-([a-zA-Z0-9]+)\\.(\\d+))?$"
|
|
6
|
+
},
|
|
7
|
+
"channels": {
|
|
8
|
+
"dev": {
|
|
9
|
+
"title": "Development",
|
|
10
|
+
"description": "Development channel is for testing new features and bug fixes before they are released to the public.",
|
|
11
|
+
"branch": "dev",
|
|
12
|
+
"prerelease": true
|
|
13
|
+
},
|
|
14
|
+
"alpha": {
|
|
15
|
+
"title": "Alpha",
|
|
16
|
+
"description": "Alpha channel is for testing new features and bug fixes before they are released to the public.",
|
|
17
|
+
"branch": "test",
|
|
18
|
+
"prerelease": true
|
|
19
|
+
},
|
|
20
|
+
"beta": {
|
|
21
|
+
"title": "Beta",
|
|
22
|
+
"description": "Beta channel is for testing new features and bug fixes before they are released to the public.",
|
|
23
|
+
"branch": "test",
|
|
24
|
+
"prerelease": true
|
|
25
|
+
},
|
|
26
|
+
"preview": {
|
|
27
|
+
"title": "Preview",
|
|
28
|
+
"description": "Preview channel is for testing new features and bug fixes before they are released to the public.",
|
|
29
|
+
"branch": "release/*",
|
|
30
|
+
"prerelease": true
|
|
31
|
+
},
|
|
32
|
+
"stable": {
|
|
33
|
+
"title": "Stable",
|
|
34
|
+
"description": "Stable channel is for the final release of new features and bug fixes.",
|
|
35
|
+
"branch": "main",
|
|
36
|
+
"prerelease": false
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"noteTypes": [
|
|
40
|
+
{
|
|
41
|
+
"sign": "!",
|
|
42
|
+
"type": "breaking-change",
|
|
43
|
+
"terms": ["BREAKING CHANGE", "BREAKING CHANGES", "BREAKING"],
|
|
44
|
+
"title": "⚠️ BREAKING CHANGE",
|
|
45
|
+
"order": 1
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"sign": "-",
|
|
49
|
+
"type": "deprecate",
|
|
50
|
+
"terms": ["DEPRECATE", "DEPRECATION"],
|
|
51
|
+
"title": "📉 DEPRECATE",
|
|
52
|
+
"order": 2
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"sign": "+",
|
|
56
|
+
"type": "new",
|
|
57
|
+
"terms": ["NEW"],
|
|
58
|
+
"title": "🆕 NEW",
|
|
59
|
+
"order": 3
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"sign": "~",
|
|
63
|
+
"type": "change",
|
|
64
|
+
"terms": ["CHANGE", "CHANGES"],
|
|
65
|
+
"title": "🔄 CHANGE",
|
|
66
|
+
"order": 4
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"sign": "*",
|
|
70
|
+
"type": "highlight",
|
|
71
|
+
"terms": ["HIGHLIGHT", "HIGHLIGHTS"],
|
|
72
|
+
"title": "🌟 KEY HIGHLIGHTS",
|
|
73
|
+
"order": 5
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"sign": "?",
|
|
77
|
+
"type": "experimental",
|
|
78
|
+
"terms": ["EXPERIMENTAL"],
|
|
79
|
+
"title": "🔬 EXPERIMENTAL",
|
|
80
|
+
"order": 6
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"sign": "",
|
|
84
|
+
"type": "known-issue",
|
|
85
|
+
"terms": ["KNOWN ISSUE", "KNOWN ISSUES", "ISSUE", "ISSUES"],
|
|
86
|
+
"title": "🐛 KNOWN ISSUES"
|
|
87
|
+
}
|
|
88
|
+
],
|
|
89
|
+
"commitTypes": [
|
|
90
|
+
{
|
|
91
|
+
"type": "feature",
|
|
92
|
+
"terms": ["feat"],
|
|
93
|
+
"title": "✨ New Features & Enhancements",
|
|
94
|
+
"order": 1
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"type": "bug-fix",
|
|
98
|
+
"terms": ["fix"],
|
|
99
|
+
"title": "🐞 Resolved Issues",
|
|
100
|
+
"order": 2
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"type": "documentation",
|
|
104
|
+
"terms": ["docs"],
|
|
105
|
+
"title": "📚 Documentation",
|
|
106
|
+
"order": 3
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"type": "style",
|
|
110
|
+
"terms": ["style"],
|
|
111
|
+
"title": "🎨 Code Style",
|
|
112
|
+
"order": 4
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"type": "refactor",
|
|
116
|
+
"terms": ["refactor"],
|
|
117
|
+
"title": "♻️ Refactoring",
|
|
118
|
+
"order": 5
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"type": "performance",
|
|
122
|
+
"terms": ["perf"],
|
|
123
|
+
"title": "🚀 Performance Improvements",
|
|
124
|
+
"order": 6
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"type": "test",
|
|
128
|
+
"terms": ["test"],
|
|
129
|
+
"title": "🧪 Tests",
|
|
130
|
+
"order": 7
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"type": "ci-cd",
|
|
134
|
+
"terms": ["ci"],
|
|
135
|
+
"title": "🔄 CI/CD",
|
|
136
|
+
"order": 8
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"type": "chore",
|
|
140
|
+
"terms": ["chore"],
|
|
141
|
+
"title": "🔧 Codebase Maintenance and Updates",
|
|
142
|
+
"order": 9
|
|
143
|
+
}
|
|
144
|
+
],
|
|
145
|
+
"linkTypes": [
|
|
146
|
+
{
|
|
147
|
+
"type": "basic",
|
|
148
|
+
"sign": ["#"],
|
|
149
|
+
"title": "Linked to"
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"type": "closed",
|
|
153
|
+
"terms": ["Closes", "Closed"],
|
|
154
|
+
"title": "Closed",
|
|
155
|
+
"order": 1
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"type": "fixed",
|
|
159
|
+
"terms": ["Fixes", "Fixed"],
|
|
160
|
+
"title": "Fixed",
|
|
161
|
+
"order": 2
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"type": "resolved",
|
|
165
|
+
"terms": ["Resolves", "Resolved"],
|
|
166
|
+
"title": "Resolved",
|
|
167
|
+
"order": 3
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
"type": "related",
|
|
171
|
+
"terms": ["Related", "Related to"],
|
|
172
|
+
"title": "Related to",
|
|
173
|
+
"order": 4
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"type": "connects",
|
|
177
|
+
"terms": ["Connects", "Connects to"],
|
|
178
|
+
"title": "Connects to",
|
|
179
|
+
"order": 5
|
|
180
|
+
}
|
|
181
|
+
],
|
|
182
|
+
"mentionTypes": [
|
|
183
|
+
{
|
|
184
|
+
"type": "co-authored-by",
|
|
185
|
+
"terms": ["Co-authored-by"],
|
|
186
|
+
"title": "Co-authored-by",
|
|
187
|
+
"order": 1
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"type": "signed-off-by",
|
|
191
|
+
"terms": ["Signed-off-by"],
|
|
192
|
+
"title": "Signed Off By",
|
|
193
|
+
"order": 2
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
"type": "acked-by",
|
|
197
|
+
"terms": ["Acked-by"],
|
|
198
|
+
"title": "Acknowledged By",
|
|
199
|
+
"order": 3
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
"type": "reviewed-by",
|
|
203
|
+
"terms": ["Reviewed-by"],
|
|
204
|
+
"title": "Reviewed By",
|
|
205
|
+
"order": 4
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
"type": "helped-by",
|
|
209
|
+
"terms": ["Helped-by"],
|
|
210
|
+
"title": "Helped By",
|
|
211
|
+
"order": 5
|
|
212
|
+
}
|
|
213
|
+
],
|
|
214
|
+
"fileGroups": {
|
|
215
|
+
"Code": ["src/", "plugins/", "pkg/", "cmake/", "build/", "bin/", "sysmodules/", "modules/"],
|
|
216
|
+
"Docs": ["docs/", ".github/", ".config/", ".vscode/", "README.md", "README.tr.md", "CONTRIBUTING.md", "CODE_OF_CONDUCT.md", "CHANGELOG.md", "release.config.mjs"],
|
|
217
|
+
"Tests": ["tests/", "data/", "cache/", "temp/", "drafts/", "log/"],
|
|
218
|
+
"Configurations": ["config/", ".editorconfig", ".env", ".gitignore", ".gitmodules", ".gitattributes", ".golangci.yml", "Dockerfile", "Makefile", "CMakeLists.txt", "package.json", "package-lock.json", "t.txt"],
|
|
219
|
+
"Assets": ["assets/", "dist/", "templates/"]
|
|
220
|
+
},
|
|
221
|
+
"allowedBranches": ["dev", "test", "release/*", "main"],
|
|
222
|
+
"allowedChannels": ["beta", "rc", "alpha", "stable"],
|
|
223
|
+
"options": {
|
|
224
|
+
"commits": {
|
|
225
|
+
"sort": "date"
|
|
226
|
+
}
|
|
227
|
+
},
|
|
228
|
+
"helpers": {
|
|
229
|
+
"groupBy": "function(array, key, config) { return array.reduce((result, item) => { const groupKey = key.split('.').reduce((acc, part) => acc && acc[part], item); if (!result[groupKey]) { const matchingType = config.commitTypes.find(ct => ct.terms.includes(groupKey)); const typeTitle = matchingType ? matchingType.title : 'Other Changes'; result[groupKey] = { title: typeTitle, items: [] }; } result[groupKey].items.push(item); return result; }, {}); }",
|
|
230
|
+
"groupByNotes": "function(array, config, includeUnmatched = true) { return array.reduce((result, item) => { if (!item.notes || item.notes.length === 0) return result; item.notes.forEach(note => { const groupKey = note.type; const matchingType = config.noteTypes.find(nt => nt.type === groupKey); if (!matchingType && !includeUnmatched) return; if (!result[groupKey]) { const typeTitle = matchingType ? matchingType.title : groupKey; result[groupKey] = { title: typeTitle, items: [] }; } result[groupKey].items.push({ note, commit: item }); }); return result; }, {}); }"
|
|
231
|
+
}
|
|
232
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChannelType.js","sourceRoot":"","sources":["../../../../src/config/types/ChannelType.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CommitType.js","sourceRoot":"","sources":["../../../../src/config/types/CommitType.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Config.js","sourceRoot":"","sources":["../../../../src/config/types/Config.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FileGroups.js","sourceRoot":"","sources":["../../../../src/config/types/FileGroups.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LinkType.js","sourceRoot":"","sources":["../../../../src/config/types/LinkType.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MentionType.js","sourceRoot":"","sources":["../../../../src/config/types/MentionType.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NoteType.js","sourceRoot":"","sources":["../../../../src/config/types/NoteType.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Options.js","sourceRoot":"","sources":["../../../../src/config/types/Options.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.run = run;
|
|
4
|
+
const context_1 = require("../git/context");
|
|
5
|
+
const writer_1 = require("../output/writer");
|
|
6
|
+
const gitOperations_1 = require("./gitOperations");
|
|
7
|
+
const templateOperations_1 = require("./templateOperations");
|
|
8
|
+
async function run(options, config) {
|
|
9
|
+
let templatePath = options.template || config.defaultTemplate;
|
|
10
|
+
let outputOpt = options.output || config.output;
|
|
11
|
+
let fileData = "";
|
|
12
|
+
const date = new Date().toISOString().split("T")[0];
|
|
13
|
+
try {
|
|
14
|
+
const repository = await (0, context_1.getGitContextAsync)();
|
|
15
|
+
// const rangeInfo = await getRangeDetails(options);
|
|
16
|
+
const { resolvedFrom, resolvedTo } = await (0, gitOperations_1.resolveGitReferences)(options);
|
|
17
|
+
const { resolvedRange, commitCount, tagList, latestTag } = await (0, gitOperations_1.collectGitInfo)(resolvedFrom, resolvedTo);
|
|
18
|
+
const rangeInfo = {
|
|
19
|
+
resolvedFrom,
|
|
20
|
+
resolvedTo,
|
|
21
|
+
resolvedRange,
|
|
22
|
+
commitCount,
|
|
23
|
+
tagList,
|
|
24
|
+
latestTag,
|
|
25
|
+
};
|
|
26
|
+
const context1 = { rangeInfo, date, resolvedFrom, resolvedTo, commitCount, latestTag, repository, config };
|
|
27
|
+
fileData = await (0, templateOperations_1.renderChangelogTemplate)(templatePath, context1, options, config);
|
|
28
|
+
(0, writer_1.writeOutput)(fileData, outputOpt);
|
|
29
|
+
}
|
|
30
|
+
catch (error) {
|
|
31
|
+
console.error("Error getting git logs:", error);
|
|
32
|
+
process.exit(1);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=app-old.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app-old.js","sourceRoot":"","sources":["../../../src/core/app-old.ts"],"names":[],"mappings":";;AAOA,kBA+BC;AAtCD,4CAAoD;AAGpD,6CAA+C;AAC/C,mDAAuE;AACvE,6DAA+D;AAExD,KAAK,UAAU,GAAG,CACvB,OAAyB,EACzB,MAAc;IAEd,IAAI,YAAY,GAAG,OAAO,CAAC,QAAQ,IAAI,MAAM,CAAC,eAAe,CAAC;IAC9D,IAAI,SAAS,GAAG,OAAO,CAAC,MAAM,IAAI,MAAM,CAAC,MAAM,CAAC;IAChD,IAAI,QAAQ,GAAW,EAAE,CAAC;IAC1B,MAAM,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;IAEpD,IAAI,CAAC;QACH,MAAM,UAAU,GAAG,MAAM,IAAA,4BAAkB,GAAE,CAAC;QAC9C,oDAAoD;QACpD,MAAM,EAAE,YAAY,EAAE,UAAU,EAAE,GAAG,MAAM,IAAA,oCAAoB,EAAC,OAAO,CAAC,CAAC;QACzE,MAAM,EAAE,aAAa,EAAE,WAAW,EAAE,OAAO,EAAE,SAAS,EAAE,GAAG,MAAM,IAAA,8BAAc,EAAC,YAAY,EAAE,UAAU,CAAC,CAAC;QAC1G,MAAM,SAAS,GAAQ;YACrB,YAAY;YACZ,UAAU;YACV,aAAa;YACb,WAAW;YACX,OAAO;YACP,SAAS;SACV,CAAC;QACF,MAAM,QAAQ,GAAG,EAAE,SAAS,EAAE,IAAI,EAAE,YAAY,EAAE,UAAU,EAAE,WAAW,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,EAAE,CAAC;QAE3G,QAAQ,GAAG,MAAM,IAAA,4CAAuB,EAAC,YAAY,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;QAElF,IAAA,oBAAW,EAAC,QAAQ,EAAE,SAAS,CAAC,CAAC;IACnC,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO,CAAC,KAAK,CAAC,yBAAyB,EAAE,KAAK,CAAC,CAAC;QAChD,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.run = run;
|
|
4
|
+
const writer_1 = require("../modules/output/writer");
|
|
5
|
+
const templateOperations_1 = require("../modules/changelog/templateOperations");
|
|
6
|
+
async function run(options, config) {
|
|
7
|
+
let templatePath = options.template || config.defaultTemplate;
|
|
8
|
+
let outputOpt = options.output || config.output;
|
|
9
|
+
let fileData = '';
|
|
10
|
+
try {
|
|
11
|
+
fileData = await (0, templateOperations_1.renderChangelogTemplate)(templatePath, options, config);
|
|
12
|
+
(0, writer_1.writeOutput)(fileData, outputOpt);
|
|
13
|
+
}
|
|
14
|
+
catch (error) {
|
|
15
|
+
console.error('Error getting git logs:', error);
|
|
16
|
+
process.exit(1);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=app.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.js","sourceRoot":"","sources":["../../../src/core/app.ts"],"names":[],"mappings":";;AAKA,kBAaC;AAhBD,qDAAsD;AACtD,gFAAiF;AAE1E,KAAK,UAAU,GAAG,CAAC,OAAyB,EAAE,MAAc;IAC/D,IAAI,YAAY,GAAG,OAAO,CAAC,QAAQ,IAAI,MAAM,CAAC,eAAe,CAAA;IAC7D,IAAI,SAAS,GAAG,OAAO,CAAC,MAAM,IAAI,MAAM,CAAC,MAAM,CAAA;IAC/C,IAAI,QAAQ,GAAW,EAAE,CAAA;IAEzB,IAAI,CAAC;QACD,QAAQ,GAAG,MAAM,IAAA,4CAAuB,EAAC,YAAY,EAAE,OAAO,EAAE,MAAM,CAAC,CAAA;QAEvE,IAAA,oBAAW,EAAC,QAAQ,EAAE,SAAS,CAAC,CAAA;IACpC,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACb,OAAO,CAAC,KAAK,CAAC,yBAAyB,EAAE,KAAK,CAAC,CAAA;QAC/C,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IACnB,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.run = run;
|
|
4
|
+
const writer_1 = require("../../modules/output/writer");
|
|
5
|
+
const templateOperations_1 = require("../../modules/changelog/templateOperations");
|
|
6
|
+
async function run(options, config) {
|
|
7
|
+
let templatePath = options.template || config.defaultTemplate;
|
|
8
|
+
let outputOpt = options.output || config.output;
|
|
9
|
+
let fileData = '';
|
|
10
|
+
try {
|
|
11
|
+
fileData = await (0, templateOperations_1.renderChangelogTemplate)(templatePath, options, config);
|
|
12
|
+
(0, writer_1.writeOutput)(fileData, outputOpt);
|
|
13
|
+
}
|
|
14
|
+
catch (error) {
|
|
15
|
+
console.error('Error getting git logs:', error);
|
|
16
|
+
process.exit(1);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=app.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.js","sourceRoot":"","sources":["../../../../src/core/changelog/app.ts"],"names":[],"mappings":";;AAKA,kBAYC;AAfD,wDAAyD;AACzD,mFAAoF;AAE7E,KAAK,UAAU,GAAG,CAAC,OAAyB,EAAE,MAAc;IAC/D,IAAI,YAAY,GAAG,OAAO,CAAC,QAAQ,IAAI,MAAM,CAAC,eAAe,CAAA;IAC7D,IAAI,SAAS,GAAG,OAAO,CAAC,MAAM,IAAI,MAAM,CAAC,MAAM,CAAA;IAC/C,IAAI,QAAQ,GAAW,EAAE,CAAA;IAEzB,IAAI,CAAC;QACD,QAAQ,GAAG,MAAM,IAAA,4CAAuB,EAAC,YAAY,EAAE,OAAO,EAAE,MAAM,CAAC,CAAA;QACvE,IAAA,oBAAW,EAAC,QAAQ,EAAE,SAAS,CAAC,CAAA;IACpC,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACb,OAAO,CAAC,KAAK,CAAC,yBAAyB,EAAE,KAAK,CAAC,CAAA;QAC/C,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IACnB,CAAC;AACL,CAAC"}
|