Skip to content

Commit

Permalink
Add Moment.js.nuspec into bump_version task
Browse files Browse the repository at this point in the history
  • Loading branch information
ichernev committed Jan 8, 2015
1 parent 94ad539 commit cf4df1c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Moment.js.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http:https://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>Moment.js</id>
<version>2.8.4</version>
<version>2.9.0</version>
<authors>Tim Wood</authors>
<owners>Cory Deppen, Iskren Chernev</owners>
<description>A lightweight javascript date library for parsing, manipulating, and formatting dates.</description>
Expand Down
13 changes: 13 additions & 0 deletions tasks/bump_version.js
Original file line number Diff line number Diff line change
Expand Up @@ -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>.*<\/version>/,
replacement: '<version>' + version + '</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'
]);
});
};

0 comments on commit cf4df1c

Please sign in to comment.