Skip to content

Commit 46c31b8

Browse files
committed
Changed Grunt config to use one reference for change log file name
1 parent 1a1287a commit 46c31b8

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Gruntfile.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ module.exports = function(grunt) {
1818
cat: 'jquery.powertip.js',
1919
min: 'jquery.powertip.min.js',
2020
zip: 'jquery.powertip-<%= pkg.version %>.zip',
21-
license: 'LICENSE.txt'
21+
license: 'LICENSE.txt',
22+
changelog: 'CHANGELOG.yml'
2223
},
2324
banner: [
2425
'/*!',
@@ -166,8 +167,8 @@ module.exports = function(grunt) {
166167
nonull: true
167168
},
168169
changelog: {
169-
src: [ 'CHANGELOG.yml' ],
170-
dest: '<%= buildpath %>/CHANGELOG.yml',
170+
src: [ '<%= files.changelog %>' ],
171+
dest: '<%= buildpath %>/<%= files.changelog %>',
171172
nonull: true
172173
},
173174
index: {
@@ -260,7 +261,7 @@ module.exports = function(grunt) {
260261
data = {
261262
pkg: grunt.file.readJSON('package.json'),
262263
doc: grunt.file.read('doc/README.md'),
263-
changelog: grunt.file.readYAML('CHANGELOG.yml')
264+
changelog: grunt.file.readYAML(grunt.template.process('<%= files.changelog %>'))
264265
},
265266
page = grunt.template.process(template, { data: data });
266267
grunt.file.write('dist/index.md', page);

0 commit comments

Comments
 (0)