@taiga-ui/auto-changelog-config 0.187.0 → 0.189.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/changelog-template.hbs +28 -0
- package/package.json +1 -1
- package/setup.js +23 -0
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{{! prettier-ignore }}
|
|
2
|
+
# Changelog
|
|
3
|
+
{{! prettier-ignore }}
|
|
4
|
+
All notable changes to this project will be documented in this file. See
|
|
5
|
+
[standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
6
|
+
|
|
7
|
+
{{! prettier-ignore }}
|
|
8
|
+
{{#each releases}}
|
|
9
|
+
##{{#unless major}}#{{/unless}} [{{#replaceTitle}}{{title}}{{/replaceTitle}}]({{href}}) ({{isoDate}})
|
|
10
|
+
|
|
11
|
+
{{#if summary}}
|
|
12
|
+
{{summary}}
|
|
13
|
+
{{/if}}
|
|
14
|
+
|
|
15
|
+
{{#commit-list commits heading='### ⚠ BREAKING CHANGES' message='[bB]reaking [cC]hange:|[bB]reaking:' }}
|
|
16
|
+
- {{#replaceCommit}}{{subject}}{{/replaceCommit}} [({{shorthash}})]({{href}})
|
|
17
|
+
{{/commit-list}}
|
|
18
|
+
|
|
19
|
+
{{#commit-list commits heading='### 🚀 Features' message='^[fF]eat:|[fF]eat\(|^[rR]efactor:|^[rR]efactor\(' exclude='[bB]reaking [cC]hange:|[bB]reaking:'}}
|
|
20
|
+
{{! prettier-ignore }}
|
|
21
|
+
- {{#replaceCommit}}{{subject}}{{/replaceCommit}} [({{shorthash}})]({{href}})
|
|
22
|
+
{{/commit-list}}
|
|
23
|
+
|
|
24
|
+
{{#commit-list commits heading='### 🐞 Bug Fixes' message='^[fF]ix:|^[fF]ix\(|^[pP]erf:|^[pP]erf\(' exclude='[bB]reaking [cC]hange:|[bB]reaking:'}}
|
|
25
|
+
- {{#replaceCommit}}{{subject}}{{/replaceCommit}} [({{shorthash}})]({{href}})
|
|
26
|
+
{{/commit-list}}
|
|
27
|
+
|
|
28
|
+
{{/each}}
|
package/package.json
CHANGED
package/setup.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
module.exports = function (
|
|
2
|
+
/** @type {{ registerHelper: (arg0: string, arg1: { (context: any): any; (context: any): any; }) => void; }} */
|
|
3
|
+
Handlebars,
|
|
4
|
+
) {
|
|
5
|
+
Handlebars.registerHelper('replaceCommit', function (context) {
|
|
6
|
+
const commit =
|
|
7
|
+
/^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test)(\((.*?)\))?: (.*?)$/g;
|
|
8
|
+
|
|
9
|
+
// @ts-ignore
|
|
10
|
+
const string = context.fn(this);
|
|
11
|
+
const parsed = Array.from(string.matchAll(commit) ?? [])[0] ?? [];
|
|
12
|
+
const [, , , scope = '', title = ''] = parsed;
|
|
13
|
+
|
|
14
|
+
return scope ? `**${scope.toLocaleLowerCase()}**: ${title}` : title;
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
Handlebars.registerHelper('replaceTitle', function (context) {
|
|
18
|
+
// @ts-ignore
|
|
19
|
+
const string = context.fn(this);
|
|
20
|
+
|
|
21
|
+
return string.replace('v', '');
|
|
22
|
+
});
|
|
23
|
+
};
|