@lmc-eu/conventional-changelog-lmc

2.0.1 • Public • Published

@lmc-eu/conventional-changelog-lmc

LMC’s Conventional Changelog Writer and Parser

Installation

NPM:

npm i --dev @lmc-eu/conventional-changelog-lmc

Yarn:

yarn add --dev @lmc-eu/conventional-changelog-lmc

Usage

const { readFile } = require('fs').promises;
const { resolve } = require('path');
const { parserOpts, writerOpts } = require('@lmc-eu/conventional-changelog-lmc');

module.exports = Promise.all([
  readFile(resolve(__dirname, 'templates/template.hbs'), 'utf-8'),
  readFile(resolve(__dirname, 'templates/header.hbs'), 'utf-8'),
  readFile(resolve(__dirname, 'templates/commit.hbs'), 'utf-8'),
  readFile(resolve(__dirname, 'templates/footer.hbs'), 'utf-8'),
]).then(([template, header, commit, footer]) => {
  writerOpts.mainTemplate = template;
  writerOpts.headerPartial = header;
  writerOpts.commitPartial = commit;
  writerOpts.footerPartial = footer;

  return {
    parserOpts,
    writerOpts,
  };
});

Package Sidebar

Install

npm i @lmc-eu/conventional-changelog-lmc

Weekly Downloads

247

Version

2.0.1

License

MIT

Unpacked Size

8.36 kB

Total Files

7

Last publish

Collaborators

  • dlouhak
  • crishpeen
  • petrofcikmatus
  • martinhrdlicka
  • petrlz
  • ondram
  • literat