Rado Kirov 8e960d4052 chore(changelog): update to new changelog package.
Regen-ed the CHANGELOG.md (for consistency). Seems like some old commits
are not present in new the CHANGELOG.md, but it doesn't seem worthy of
further investigation.

closes #3204, #3172
2015-07-29 22:42:05 +00:00

27 lines
629 B
JavaScript
Executable File

#!/usr/bin/env node
'use strict';
/**
* Just a small command-line wrapper around the conventional-changelog npm module
* (https://www.npmjs.com/package/conventional-changelog), which also prepends
* changes to CHANGELOG.md.
*
* Runs with default (latest tag...head)
* $ ./changelog.js
*/
var fs = require('fs');
var cl = require('conventional-changelog');
var changelogStream = fs.createWriteStream('CHANGELOG.md');
var config = {
preset: 'angular',
releaseCount: 1,
};
cl(config).on('error', function(err) {
console.error('Failed to generate changelog: ' + err);
}).pipe(changelogStream);