@mlaursen/changelog-preset
v1.1.0
Published
This is a custom standard-changelog preset that is based off of the angular preset that logs a bit more in the changelog.
Downloads
8
Readme
@mlaursen/changelog-preset
This is a custom standard-changelog preset that is based off of the angular preset that logs a bit more in the changelog.
The default behavior of this template will:
- convert each commit type of:
feat
->Features
fix
->Bug Fixes
perf
->Performance Improvements
docs
->Documentation
revert
->Reverts
(or if commit message hasrevert
)- everything else ->
Other Internal Changes
- sort the commit types by:
Bug Fixes
Features
Documentation
Reverts
Performance Improvements
Other Internal Changes
- If none match, alpha-numeric sort by title.
Examples
- this repo
- react-md
- https://github.com/mlaursen/react-md/tree/main/CHANGELOG.md
- https://github.com/mlaursen/react-md/tree/main/changelog.config.js
- @mlaursen/eslint-config
- https://github.com/mlaursen/eslint-config/tree/main/CHANGELOG.md
- https://github.com/mlaursen/eslint-config/tree/main/changelog.config.js
Configuration
The behavior can be configured by creating a changelog.config.js
at the root of your git repo.
Check out the configuration interface for documentation about how the config works.
Simple Configuration Example
const {
createConfig,
defaultCommitGroupsSort,
defaultGetCommitType,
defaultGetCommitScope,
} = require("@mlaursen/changelog-preset/createConfig");
// the `createConfig` is just used to add intellisense for the config
module.exports = createConfig({
// these are _basically_ the defaults
// tokens: [],
// tokenizer: (subject) => subject,
// ignoreDeps: true,
// getCommitType: defaultGetCommitType,
// getCommitScope: defaultGetCommitScope,
// commitGroupsSort: defaultCommitGroupsSort,
});