@adamhl8/configs 0.23.0 → 0.23.2
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/configs/cliff.base.toml +51 -0
- package/package.json +4 -4
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
[changelog]
|
|
2
|
+
body = """
|
|
3
|
+
{% macro print_commit(commit) -%}
|
|
4
|
+
- {% if commit.scope %}*({{ commit.scope }})* {% endif %}\
|
|
5
|
+
{% if commit.breaking %}[**breaking**] {% endif %}\
|
|
6
|
+
{{ commit.message | trim }}\
|
|
7
|
+
{% if commit.remote.username %} by @{{ commit.remote.username }}{%- endif -%}\
|
|
8
|
+
{% if commit.remote.pr_number %} in \
|
|
9
|
+
[#{{ commit.remote.pr_number }}]({{ self::remote_url() }}/pull/{{ commit.remote.pr_number }}){%- endif %} \
|
|
10
|
+
([{{ commit.id | truncate(length=7, end="") }}]({{ self::remote_url() }}/commit/{{ commit.id }}))\
|
|
11
|
+
{% endmacro -%}
|
|
12
|
+
|
|
13
|
+
{%- macro remote_url() -%}
|
|
14
|
+
https://github.com/{{ remote.github.owner }}/{{ remote.github.repo }}
|
|
15
|
+
{%- endmacro -%}
|
|
16
|
+
|
|
17
|
+
{% if version %}\
|
|
18
|
+
{% if previous.version %}\
|
|
19
|
+
## [{{ version | trim_start_matches(pat="v") }}]\
|
|
20
|
+
({{ self::remote_url() }}/compare/{{ previous.version }}..{{ version }}) - {{ timestamp | date(format="%Y-%m-%d") }}
|
|
21
|
+
{% else %}\
|
|
22
|
+
## [{{ version | trim_start_matches(pat="v") }}] - {{ timestamp | date(format="%Y-%m-%d") }}
|
|
23
|
+
{% endif %}\
|
|
24
|
+
{% else %}\
|
|
25
|
+
## [unreleased]
|
|
26
|
+
{% endif %}\
|
|
27
|
+
|
|
28
|
+
{% for group, commits in commits | group_by(attribute="group") %}
|
|
29
|
+
### {{ group | striptags | trim | upper_first }}
|
|
30
|
+
{% for commit in commits %}
|
|
31
|
+
{{ self::print_commit(commit=commit) }}
|
|
32
|
+
{% endfor %}
|
|
33
|
+
{%- endfor -%}
|
|
34
|
+
"""
|
|
35
|
+
|
|
36
|
+
[git]
|
|
37
|
+
commit_parsers = [
|
|
38
|
+
{ message = "^feat", group = "<!-- 0 -->🚀 Features" },
|
|
39
|
+
{ message = "^fix", group = "<!-- 1 -->🐛 Bug Fixes" },
|
|
40
|
+
{ message = "^perf", group = "<!-- 2 -->⚡ Performance" },
|
|
41
|
+
{ message = "^refactor", group = "<!-- 3 -->🚜 Refactor" },
|
|
42
|
+
{ message = "^chore|^ci", group = "<!-- 4 -->⚙️ Miscellaneous Tasks" },
|
|
43
|
+
{ message = "^doc", group = "<!-- 5 -->📚 Documentation" },
|
|
44
|
+
{ message = "^revert", group = "<!-- 6 -->◀️ Revert" },
|
|
45
|
+
{ message = "^release", skip = true },
|
|
46
|
+
]
|
|
47
|
+
|
|
48
|
+
commit_preprocessors = [{ pattern = '\((\w+\s)?#([0-9]+)\)', replace = "" }]
|
|
49
|
+
|
|
50
|
+
filter_commits = true
|
|
51
|
+
sort_commits = "newest"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adamhl8/configs",
|
|
3
|
-
"version": "0.23.
|
|
3
|
+
"version": "0.23.2",
|
|
4
4
|
"homepage": "https://github.com/adamhl8/configs",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/adamhl8/configs/issues"
|
|
@@ -38,20 +38,20 @@
|
|
|
38
38
|
},
|
|
39
39
|
"scripts": {
|
|
40
40
|
"lint": "markdown-toc -i --bullets '-' --maxdepth 3 ./README.md && oxfmt && oxlint --fix --fix-suggestions --fix-dangerously && adamhl8-knip",
|
|
41
|
-
"bump-deps": "rm -f lock.yaml && nub
|
|
41
|
+
"bump-deps": "nub update -L && rm -f lock.yaml && nub i && oxfmt",
|
|
42
42
|
"bundle": "nub run lint && tsdown",
|
|
43
43
|
"release": "release-it --ci -i \"$(adamhl8-cliff --bumped-version)\"",
|
|
44
44
|
"prepare": "lefthook install && nub ./patch-knip.ts && tsdown"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
+
"@commitlint/config-conventional": "^21.1.0",
|
|
48
|
+
"@commitlint/types": "^21.1.0",
|
|
47
49
|
"es-toolkit": "^1.49.0",
|
|
48
50
|
"type-fest": "^5.7.0"
|
|
49
51
|
},
|
|
50
52
|
"devDependencies": {
|
|
51
53
|
"@arethetypeswrong/core": "^0.18.4",
|
|
52
54
|
"@commitlint/cli": "^21.1.0",
|
|
53
|
-
"@commitlint/config-conventional": "^21.1.0",
|
|
54
|
-
"@commitlint/types": "^21.1.0",
|
|
55
55
|
"@types/node": "^26.0.1",
|
|
56
56
|
"knip": "^6.23.0",
|
|
57
57
|
"markdown-toc": "^1.2.0",
|