Skip to content

Commit

Permalink
Gruntfile replaces @Version@ correctly now
Browse files Browse the repository at this point in the history
  • Loading branch information
Gordin committed Jan 20, 2014
1 parent 3ccbf0c commit 02c798f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ if (fs.existsSync("/usr/bin/naturaldocs")) {
}

module.exports = function(grunt){
var pkg = grunt.file.readJSON('package.json');

grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
pkg: pkg,

clean: {
"prepare-doc": ["<%= natural_docs.docs.inputs[0] %>", "<%= natural_docs.docs.project %>"],
Expand All @@ -28,7 +29,7 @@ module.exports = function(grunt){
},
options: {
process: function(src){
return src.replace('@VERSION@', '<%= pkg.version %>');
return src.replace('@VERSION@', pkg.version);
}
}
},
Expand Down

0 comments on commit 02c798f

Please sign in to comment.