From 02c798fed585e5e4be055d33a9d625d2b164c411 Mon Sep 17 00:00:00 2001 From: Gordin <9ordin@gmail.com> Date: Mon, 20 Jan 2014 22:10:14 +0100 Subject: [PATCH] Gruntfile replaces @VERSION@ correctly now --- Gruntfile.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index 882d6059..97f0acbb 100644 --- a/Gruntfile.js +++ b/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); } } },