Skip to content

Commit

Permalink
Bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
markgoodyear committed Jun 1, 2015
1 parent 89c572a commit 2ecde05
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Headhesive changelog

## v1.2.3
- [Fix] Readme correction

## v1.2.2
- [Fix] Fix UMD support

Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Headhesive.js",
"version": "1.2.2",
"version": "1.2.3",
"homepage": "http://markgoodyear.com/labs/headhesive/",
"authors": [
"Mark Goodyear <[email protected]> (http://markgoodyear.com)"
Expand Down
16 changes: 16 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ var uglify = require('gulp-uglify');
var header = require('gulp-header');
var rename = require('gulp-rename');
var include = require('gulp-include');
var bump = require('gulp-bump');
var del = require('del');
var pkg = require('./package.json');

Expand All @@ -27,6 +28,21 @@ var config = {
''].join('\n')
};

/**
* Bump version
*/
var bumpVer = function (bumpType) {
return gulp.src(['./package.json', './bower.json'])
.pipe(bump({
type: bumpType
}))
.pipe(gulp.dest('./'));
}

gulp.task('bump:patch', function () { return bumpVer('patch'); })
gulp.task('bump:minor', function () { return bumpVer('minor'); })
gulp.task('bump:major', function () { return bumpVer('major'); })

/**
* Tasks
*/
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "headhesive",
"description": "An on-demand sticky header",
"version": "1.2.2",
"version": "1.2.3",
"author": {
"name": "Mark Goodyear",
"url": "http://markgoodyear.com",
Expand Down Expand Up @@ -34,6 +34,7 @@
"devDependencies": {
"del": "^1.2.0",
"gulp": "~3.8.11",
"gulp-bump": "^0.3.1",
"gulp-concat": "~2.5.2",
"gulp-header": "~1.2.2",
"gulp-include": "^1.1.1",
Expand Down

0 comments on commit 2ecde05

Please sign in to comment.