Add the date next to the version in the changelog.

This commit is contained in:
Nicolas Stepien 2013-03-13 23:50:00 +01:00
parent cd8faebb78
commit 87d9187783

View File

@ -98,7 +98,7 @@ module.exports = function(grunt) {
// Update the `pkg` object with the new version.
pkg = grunt.file.readJSON('package.json');
// i is the number of #s for markdown.
var version = new Array(+i + 1).join('#') + ' ' + pkg.version;
var version = new Array(+i + 1).join('#') + ' ' + pkg.version + ' *(' + grunt.template.today('yyyy-mm-dd') + ')*';
grunt.file.write('CHANGELOG.md', version + '\n' + grunt.file.read('CHANGELOG.md'));
grunt.log.ok('Changelog updated for v' + pkg.version + '.');
});