@lmc-eu/conventional-changelog-lmc
v2.0.3
Published
conventional-changelog LMC parser and writer
Downloads
746
Readme
@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,
};
});