@taiga-ui/auto-changelog-config 0.190.0 → 0.192.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 +14 -8
- package/package.json +1 -1
- package/setup.js +17 -0
package/changelog-template.hbs
CHANGED
|
@@ -1,12 +1,19 @@
|
|
|
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
1
|
{{! prettier-ignore }}
|
|
8
2
|
{{#each releases}}
|
|
9
|
-
|
|
3
|
+
{{#ifeq @index 0}}
|
|
4
|
+
{{#if tag}}
|
|
5
|
+
|
|
6
|
+
# Changelog
|
|
7
|
+
{{! prettier-ignore }}
|
|
8
|
+
All notable changes to this project will be documented in this file. See
|
|
9
|
+
[standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
10
|
+
|
|
11
|
+
{{/if}}
|
|
12
|
+
{{/ifeq}}
|
|
13
|
+
|
|
14
|
+
{{#if tag}}
|
|
15
|
+
##{{#unless major}}#{{/unless}} [{{#replaceTitle}}{{title}}{{/replaceTitle}}]({{href}}) ({{isoDate}})
|
|
16
|
+
{{/if}}
|
|
10
17
|
|
|
11
18
|
{{#if summary}}
|
|
12
19
|
{{summary}}
|
|
@@ -17,7 +24,6 @@ All notable changes to this project will be documented in this file. See
|
|
|
17
24
|
{{/commit-list}}
|
|
18
25
|
|
|
19
26
|
{{#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
27
|
- {{#replaceCommit}}{{subject}}{{/replaceCommit}} [({{shorthash}})]({{href}})
|
|
22
28
|
{{/commit-list}}
|
|
23
29
|
|
package/package.json
CHANGED
package/setup.js
CHANGED
|
@@ -20,4 +20,21 @@ module.exports = function (
|
|
|
20
20
|
|
|
21
21
|
return string.replace('v', '');
|
|
22
22
|
});
|
|
23
|
+
|
|
24
|
+
Handlebars.registerHelper(
|
|
25
|
+
'ifeq',
|
|
26
|
+
function (
|
|
27
|
+
/** @type {any} */ a,
|
|
28
|
+
/** @type {any} */ b,
|
|
29
|
+
/** @type {{ fn: (arg0: any) => any; inverse: (arg0: any) => any; }} */ options,
|
|
30
|
+
) {
|
|
31
|
+
if (a === b) {
|
|
32
|
+
// @ts-ignore
|
|
33
|
+
return options.fn(this);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
// @ts-ignore
|
|
37
|
+
return options.inverse(this);
|
|
38
|
+
},
|
|
39
|
+
);
|
|
23
40
|
};
|