Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Gruntfile replaces @VERSION@ correctly now

  • Loading branch information...
commit 02c798fed585e5e4be055d33a9d625d2b164c411 1 parent 3ccbf0c
@Gordin Gordin authored
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);
}
}
},
Please sign in to comment.
Something went wrong with that request. Please try again.