Skip to content

Latest commit

History

History

conventional-changelog-lmc-github

Folders and files

NameName
Last commit message
Last commit date

parent directory

..

@lmc-eu/conventional-changelog-lmc-github

LMC鈥檚 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