Skip to main content
Introducing packages.sweber.dev
Documentation menuConfiguration

Configuration

derivative.config.json and CLI options.

derivative build reads derivative.config.json from the current directory, or the file given with --config. Paths in it are relative to the file. CLI options override it.

{
  "source": "changelog",
  "changelog": "CHANGELOG.md",
  "title": "Acme changelog",
  "link": "https://acme.ch/changelog",
  "limit": 30,
  "lang": "de",
  "out": {
    "json": "public/changelog.json",
    "atom": "public/changelog.xml",
    "html": "public/changelog.html"
  },
  "atomUrl": "https://acme.ch/changelog.xml",
  "highlights": {}
}
KeyCLIDefaultMeaning
source--sourcechangelog if the file exists, else gitWhere releases come from
changelog--changelog (repeatable)CHANGELOG.mdOne path or a list for monorepos
tagPattern--tag-patterntags containing a versiongit: regular expression for release tags
typesfeat, fix, perf, security, deprecate, revertgit: commit type → entry type
commitUrl--commit-urlgit: link template, {hash} is replaced
includeUnreleased--unreleasedfalseKeep unreleased changes
title--titleFeed and page title
link--linkURL of the full changelog, used by the widget's "All changes" link
limit--limitallKeep the newest n releases
lang--langenLabels and dates in the Atom feed and HTML page
out.json--outpublic/changelog.json
out.atom--atomAtom feed
out.html--htmlStandalone HTML page
atomUrlPublic URL of the Atom file (its rel="self" link)
highlightsSee Highlights