Permalink
Browse files

Gruntfile replaces @VERSION@ correctly now

  • Loading branch information...
1 parent 3ccbf0c commit 02c798fed585e5e4be055d33a9d625d2b164c411 @Gordin Gordin committed Jan 20, 2014
Showing with 3 additions and 2 deletions.
  1. +3 −2 Gruntfile.js
View
5 Gruntfile.js
@@ -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 %>"],
@@ -28,7 +29,7 @@ module.exports = function(grunt){
},
options: {
process: function(src){
- return src.replace('@VERSION@', '<%= pkg.version %>');
+ return src.replace('@VERSION@', pkg.version);
}
}
},

0 comments on commit 02c798f

Please sign in to comment.