semantic-prerelease/generateNotes.js

17 строки
407 B
JavaScript
Исходник Обычный вид История

2017-05-19 18:10:50 +03:00
const changelog = require('conventional-changelog')
const parseUrl = require('github-url-from-git')
const lastTag = require('./lastTag');
2017-05-19 18:10:50 +03:00
module.exports = function (pluginConfig, {pkg}, cb) {
const repository = pkg.repository ? parseUrl(pkg.repository.url) : null
const from = lastTag();
2017-05-19 18:10:50 +03:00
changelog({
version: pkg.version,
repository: repository,
from: from,
file: false
}, cb)
};