Skip to content

Commit

Permalink
Updated versioning to bump bower and component json files also
Browse files Browse the repository at this point in the history
fixes #1123, fixes #1140
  • Loading branch information
heff committed Apr 12, 2014
1 parent 848cfd6 commit da45dad
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 12 deletions.
27 changes: 23 additions & 4 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,28 @@ module.exports = function(grunt) {
}
}
},
bump: {
files: ['package.json'],
updateConfigs: ['pkg']
version: {
options: {
pkg: 'package.json'
},
major: {
options: {
release: 'major'
},
src: ['package.json', 'bower.json', 'component.json']
},
minor: {
options: {
release: 'minor'
},
src: ['package.json', 'bower.json', 'component.json']
},
patch: {
options: {
release: 'patch'
},
src: ['package.json', 'bower.json', 'component.json']
}
},
tagrelease: {
file: 'package.json',
Expand All @@ -205,7 +224,7 @@ module.exports = function(grunt) {
grunt.loadNpmTasks('videojs-doc-generator');
grunt.loadNpmTasks('grunt-zip');
grunt.loadNpmTasks('grunt-banner');
grunt.loadNpmTasks('grunt-bump');
grunt.loadNpmTasks('grunt-version');
grunt.loadNpmTasks('grunt-tagrelease');
grunt.loadNpmTasks('chg');

Expand Down
6 changes: 3 additions & 3 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "video.js",
"description": "An HTML5 and Flash video player with a common API and skin for both.",
"version": "4.4.3",
"version": "4.5.1",
"main": [
"dist/video-js/video.js",
"dist/video-js/video.js",
"dist/video-js/video-js.css"
],
"keywords": [
Expand All @@ -13,4 +13,4 @@
"video",
"player"
]
}
}
2 changes: 1 addition & 1 deletion component.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "video.js",
"description": "An HTML5 and Flash video player with a common API and skin for both.",
"version": "4.4.2",
"version": "4.5.1",
"keywords": [
"videojs",
"html5",
Expand Down
4 changes: 2 additions & 2 deletions contrib.json
Original file line number Diff line number Diff line change
Expand Up @@ -278,8 +278,8 @@
"exec": "grunt chg-release:<%= type %>"
},
{
"desc": "Bump the package version",
"exec": "grunt bump-only:<%= type %>"
"desc": "Bump package versions",
"exec": "grunt version:<%= type %>"
},
{
"desc": "Build the release",
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@
"grunt-zip": "0.10.2",
"grunt-banner": "~0.2.0",
"chg": "~0.1.8",
"grunt-bump": "0.0.13",
"grunt-tagrelease": "~0.3.3",
"github": "~0.1.14",
"open": "0.0.4"
"open": "0.0.4",
"grunt-version": "~0.3.0"
}
}

0 comments on commit da45dad

Please sign in to comment.