Skip to content

Commit

Permalink
Changed Grunt config to use one reference for change log file name
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenbenner committed Sep 19, 2016
1 parent 1a1287a commit 46c31b8
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ module.exports = function(grunt) {
cat: 'jquery.powertip.js',
min: 'jquery.powertip.min.js',
zip: 'jquery.powertip-<%= pkg.version %>.zip',
license: 'LICENSE.txt'
license: 'LICENSE.txt',
changelog: 'CHANGELOG.yml'
},
banner: [
'/*!',
Expand Down Expand Up @@ -166,8 +167,8 @@ module.exports = function(grunt) {
nonull: true
},
changelog: {
src: [ 'CHANGELOG.yml' ],
dest: '<%= buildpath %>/CHANGELOG.yml',
src: [ '<%= files.changelog %>' ],
dest: '<%= buildpath %>/<%= files.changelog %>',
nonull: true
},
index: {
Expand Down Expand Up @@ -260,7 +261,7 @@ module.exports = function(grunt) {
data = {
pkg: grunt.file.readJSON('package.json'),
doc: grunt.file.read('doc/README.md'),
changelog: grunt.file.readYAML('CHANGELOG.yml')
changelog: grunt.file.readYAML(grunt.template.process('<%= files.changelog %>'))
},
page = grunt.template.process(template, { data: data });
grunt.file.write('dist/index.md', page);
Expand Down

0 comments on commit 46c31b8

Please sign in to comment.