Add the date next to the version in the changelog.
This commit is contained in:
parent
cd8faebb78
commit
87d9187783
@ -98,7 +98,7 @@ module.exports = function(grunt) {
|
|||||||
// Update the `pkg` object with the new version.
|
// Update the `pkg` object with the new version.
|
||||||
pkg = grunt.file.readJSON('package.json');
|
pkg = grunt.file.readJSON('package.json');
|
||||||
// i is the number of #s for markdown.
|
// 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.file.write('CHANGELOG.md', version + '\n' + grunt.file.read('CHANGELOG.md'));
|
||||||
grunt.log.ok('Changelog updated for v' + pkg.version + '.');
|
grunt.log.ok('Changelog updated for v' + pkg.version + '.');
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user