@lmc-eu/conventional-changelog-lmc-bitbucket
LMC's Conventional Changelog preset for BitBucket repositories
Usage
Installation
NPM:
npm i --dev @commitlint/cli @commitlint/config-conventional @lmc-eu/conventional-changelog-lmc-bitbucket
Yarn:
yarn add --dev @commitlint/cli @commitlint/config-conventional @lmc-eu/conventional-changelog-lmc-bitbucket
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-bitbucket',
};
Changelog
In a package.json define following scripts:
{
"scripts": {
"changelog": "conventional-changelog -p lmc-bitbucket -i CHANGELOG.md -s",
"changelog:origin": "conventional-changelog -p lmc-bitbucket -i CHANGELOG.md -s -r 0"
}
}
For example see example changelog file