Skip to content

Commit

Permalink
chore: cmake tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
jackhumbert committed May 6, 2023
1 parent a43bc06 commit f99f0ba
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 2 deletions.
5 changes: 3 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
cmake_minimum_required(VERSION 3.24)

project(mod_settings VERSION 0.1.0)

list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")
list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/deps/cpcmake")

include(CyberpunkMod)

project(mod_settings VERSION 0.1.0)

configure_mod(
NAME "Mod Settings"
SLUG ${PROJECT_NAME}
PREFIX MS
AUTHOR "Jack Humbert"
URL "https://github.com/jackhumbert/mod_settings"
LICENSE "Licensed under the MIT license. See the license.md in the root project for details."
Expand Down
41 changes: 41 additions & 0 deletions cliff.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
[changelog]
header = """
# Changelog
"""
# template for the changelog body
# https://tera.netlify.app/docs/#introduction
body = """
{% if version %}\
## [{{ version | trim_start_matches(pat="v") }}] - {{ timestamp | date(format="%Y-%m-%d") }}
{% else %}\
## [unreleased]
{% endif %}\
{% for group, commits in commits | group_by(attribute="group") %}
### {{ group | upper_first }}
{% for commit in commits %}\
- {% if commit.breaking %}[**breaking**] {% endif %}\
{{ commit.message | upper_first }} ({{ commit.id }})
{% endfor %}\
{% endfor %}
### Contributors
{% for author in commits | map(attribute="author.name") | unique %}\
- {{ author }}
{% endfor %}\n
"""
trim = true

[git]
# parse the commits based on https://www.conventionalcommits.org
conventional_commits = true
commit_parsers = [
{ message = "^feat", group = "Features" },
{ message = "^fix", group = "Bug Fixes" },
{ message = "^doc", group = "Documentation" },
{ message = "^perf", group = "Performance" },
{ message = "^refactor", group = "Refactor" },
{ message = "^style", group = "Styling" },
{ message = "^test", group = "Testing" },
{ message = "^chore", group = "Miscellaneous", skip = true },
{ message = "^ci", group = "CI", skip = true },
{ body = ".*security", group = "Security" },
]

0 comments on commit f99f0ba

Please sign in to comment.