charlike
Version:
Small, fast, simple and streaming project scaffolder for myself, but not only. Supports hundreds of template engines through the @JSTransformers API or if you want custom `render` function passed through options
19 lines (14 loc) • 596 B
JavaScript
;
var conventionalChangelogCore = require('conventional-changelog-core');
function conventionalChangelog(options, context, gitRawCommitsOpts, parserOpts, writerOpts) {
options.warn = options.warn || function() {};
if (options.preset) {
try {
options.config = require('conventional-changelog-' + options.preset.toLowerCase());
} catch (err) {
options.warn('Preset: "' + options.preset + '" does not exist');
}
}
return conventionalChangelogCore(options, context, gitRawCommitsOpts, parserOpts, writerOpts);
}
module.exports = conventionalChangelog;