Skip to content

Commit

Permalink
Add gulp bump
Browse files Browse the repository at this point in the history
  • Loading branch information
ConradIrwin committed Sep 9, 2015
1 parent 4aa7a90 commit 363cc72
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,17 @@ Misc
==========
Some canvas 2d context methods are not implemented yet. Watch out for setTransform and arcTo.

Releasing
=========

To release a new version:

* Run `gulp bump` to update the version number
* Add a new entry to the [Updates](#Updates) table
* `git commit -am v1.0.xx`
* `git push`
* `npm publish`

License
==========
This library is licensed under the MIT license.
9 changes: 8 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ var gulp = require('gulp');
var fs = require('fs');
var path = require('path');
var cheerio = require('cheerio');
var bump = require('gulp-bump');


function updateExample(filename) {
Expand All @@ -28,4 +29,10 @@ gulp.task('update_examples', function() {
updateExample('test/testrunner.html');
});

gulp.task('default', ['update_examples']);
gulp.task('bump', function() {
gulp.src(["./package.json", "./bower.json"])
.pipe(bump({type:'patch'}))
.pipe(gulp.dest('./'));
});

gulp.task('default', ['update_examples']);
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"chai": "^2.1.1",
"cheerio": "^0.19.0",
"gulp": "^3.9.0",
"gulp-bump": "^0.3.1",
"karma": "^0.12.36",
"karma-chai": "^0.1.0",
"karma-chrome-launcher": "^0.1.12",
Expand Down

0 comments on commit 363cc72

Please sign in to comment.