From: Iskren Chernev Date: Thu, 8 Jan 2015 15:13:52 +0000 (-0800) Subject: Add Moment.js.nuspec into bump_version task X-Git-Tag: 2.10.2~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cf4df1cf7a93a9e0e407d8f3efebdf3e13e73000;p=thirdparty%2Fmoment.git Add Moment.js.nuspec into bump_version task --- diff --git a/Moment.js.nuspec b/Moment.js.nuspec index 962482366..ffc1af0e8 100644 --- a/Moment.js.nuspec +++ b/Moment.js.nuspec @@ -2,7 +2,7 @@ Moment.js - 2.8.4 + 2.9.0 Tim Wood Cory Deppen, Iskren Chernev A lightweight javascript date library for parsing, manipulating, and formatting dates. diff --git a/tasks/bump_version.js b/tasks/bump_version.js index 4ebd2ffe8..7490058a4 100644 --- a/tasks/bump_version.js +++ b/tasks/bump_version.js @@ -55,11 +55,24 @@ module.exports = function (grunt) { } }); + grunt.config('string-replace.moment-js-nuspec', { + files: {'Moment.js.nuspec': 'Moment.js.nuspec'}, + options: { + replacements: [ + { + pattern: /.*<\/version>/, + replacement: '' + version + '' + } + ] + } + }); + grunt.task.run([ 'string-replace:moment-js', 'string-replace:package-json', 'string-replace:bower-json', 'string-replace:component-json', + 'string-replace:moment-js-nuspec' ]); }); };