@lmc-eu/conventional-changelog-lmc-github
v3.0.3
Published
conventional-changelog LMC preset for GitHub
Downloads
749
Readme
@lmc-eu/conventional-changelog-lmc-github
LMC’s Conventional Changelog preset for GitHub repositories
Usage
Installation
NPM:
npm i --dev @commitlint/cli @commitlint/config-conventional @lmc-eu/conventional-changelog-lmc-github
Yarn:
yarn add --dev @commitlint/cli @commitlint/config-conventional @lmc-eu/conventional-changelog-lmc-github
Configuration
Linting
Create a commitlint.config.js file with the following contents:
'use strict';
module.exports = {
extends: ['@commitlint/config-conventional'],
parserPreset: '@lmc-eu/conventional-changelog-lmc-github',
};
Changelog
In a package.json define following scripts:
{
"scripts": {
"changelog": "conventional-changelog -p lmc-github -i CHANGELOG.md -s",
"changelog:origin": "conventional-changelog -p lmc-github -i CHANGELOG.md -s -r 0"
}
}
For example see example changelog file