Skip to content

Commit 1a1287a

Browse files
committed
Changed Grunt config to use one reference for license file name
1 parent d702e4f commit 1a1287a

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
@@ -17,15 +17,16 @@ module.exports = function(grunt) {
1717
files: {
1818
cat: 'jquery.powertip.js',
1919
min: 'jquery.powertip.min.js',
20-
zip: 'jquery.powertip-<%= pkg.version %>.zip'
20+
zip: 'jquery.powertip-<%= pkg.version %>.zip',
21+
license: 'LICENSE.txt'
2122
},
2223
banner: [
2324
'/*!',
2425
' <%= pkg.title %> v<%= pkg.version %> (<%= grunt.template.today("yyyy-mm-dd") %>)',
2526
' <%= pkg.homepage %>',
2627
' Copyright (c) <%= grunt.template.today("yyyy") %> <%= pkg.author.name %> (<%= pkg.author.url %>).',
2728
' Released under <%= pkg.license %> license.',
28-
' https://raw.github.com/stevenbenner/jquery-powertip/master/LICENSE.txt',
29+
' https://raw.github.com/stevenbenner/jquery-powertip/master/<%= files.license %>',
2930
'*/\n'
3031
].join('\n'),
3132
clean: {
@@ -160,8 +161,8 @@ module.exports = function(grunt) {
160161
nonull: true
161162
},
162163
license: {
163-
src: [ 'LICENSE.txt' ],
164-
dest: '<%= buildpath %>/LICENSE.txt',
164+
src: [ '<%= files.license %>' ],
165+
dest: '<%= buildpath %>/<%= files.license %>',
165166
nonull: true
166167
},
167168
changelog: {

0 commit comments

Comments
 (0)