mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
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
26 lines
629 B
JavaScript
Executable file
26 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);
|