Fixed version number update in constants.js

This commit is contained in:
benweet 2013-11-20 22:27:12 +00:00
parent a9cbd6714d
commit 69ba2d0b2d

View File

@ -118,14 +118,14 @@ module.exports = function(grunt) {
] ]
} }
}, },
'config': { 'constants': {
files: { files: {
'public/res/config.js': 'public/res/config.js' 'public/res/constants.js': 'public/res/constants.js'
}, },
options: { options: {
replacements: [ replacements: [
{ {
pattern: /(constants\.VERSION = ).*/, pattern: /constants\.VERSION = .*/,
replacement: 'constants.VERSION = "<%= pkg.version %>";' replacement: 'constants.VERSION = "<%= pkg.version %>";'
}, },
] ]
@ -302,7 +302,7 @@ module.exports = function(grunt) {
*/ */
grunt.registerTask('tag', function(versionType) { grunt.registerTask('tag', function(versionType) {
grunt.task.run('bump-only:' + (versionType || 'patch')); 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('default');
grunt.task.run('bump-commit'); grunt.task.run('bump-commit');
}); });