Skip to content

Commit

Permalink
Build/grunt: Can use config('pkg.version'), now was fixed in grunt
Browse files Browse the repository at this point in the history
  • Loading branch information
jzaefferer committed Mar 9, 2012
1 parent 8a982f5 commit 59a26c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion grunt.js
Expand Up @@ -254,7 +254,7 @@ config('files', files);


task.registerBasicTask('copy', 'Copy files to destination folder and replace @VERSION with pkg.version', function(data) { task.registerBasicTask('copy', 'Copy files to destination folder and replace @VERSION with pkg.version', function(data) {
function replaceVersion(source) { function replaceVersion(source) {
return source.replace("@VERSION", config("pkg").version); return source.replace("@VERSION", config("pkg.version"));
} }
var files = file.expand(data.src); var files = file.expand(data.src);
var target = data.dest + '/'; var target = data.dest + '/';
Expand Down

0 comments on commit 59a26c8

Please sign in to comment.