From 69ba2d0b2d995ba38077bcba45172e0d023273a5 Mon Sep 17 00:00:00 2001 From: benweet Date: Wed, 20 Nov 2013 22:27:12 +0000 Subject: [PATCH] Fixed version number update in constants.js --- Gruntfile.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index 65b0dfbe..8d3f7415 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -118,14 +118,14 @@ module.exports = function(grunt) { ] } }, - 'config': { + 'constants': { files: { - 'public/res/config.js': 'public/res/config.js' + 'public/res/constants.js': 'public/res/constants.js' }, options: { replacements: [ { - pattern: /(constants\.VERSION = ).*/, + pattern: /constants\.VERSION = .*/, replacement: 'constants.VERSION = "<%= pkg.version %>";' }, ] @@ -302,7 +302,7 @@ module.exports = function(grunt) { */ grunt.registerTask('tag', function(versionType) { grunt.task.run('bump-only:' + (versionType || 'patch')); - grunt.task.run('string-replace:config'); + grunt.task.run('string-replace:constants'); grunt.task.run('default'); grunt.task.run('bump-commit'); });