Add gulp bump

This commit is contained in:
Conrad Irwin 2015-09-09 11:02:48 -07:00
parent 4aa7a90586
commit 363cc72ebf
3 changed files with 20 additions and 1 deletions

View File

@ -121,6 +121,17 @@ Misc
========== ==========
Some canvas 2d context methods are not implemented yet. Watch out for setTransform and arcTo. 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 License
========== ==========
This library is licensed under the MIT license. This library is licensed under the MIT license.

View File

@ -4,6 +4,7 @@ var gulp = require('gulp');
var fs = require('fs'); var fs = require('fs');
var path = require('path'); var path = require('path');
var cheerio = require('cheerio'); var cheerio = require('cheerio');
var bump = require('gulp-bump');
function updateExample(filename) { function updateExample(filename) {
@ -28,4 +29,10 @@ gulp.task('update_examples', function() {
updateExample('test/testrunner.html'); updateExample('test/testrunner.html');
}); });
gulp.task('bump', function() {
gulp.src(["./package.json", "./bower.json"])
.pipe(bump({type:'patch'}))
.pipe(gulp.dest('./'));
});
gulp.task('default', ['update_examples']); gulp.task('default', ['update_examples']);

View File

@ -22,6 +22,7 @@
"chai": "^2.1.1", "chai": "^2.1.1",
"cheerio": "^0.19.0", "cheerio": "^0.19.0",
"gulp": "^3.9.0", "gulp": "^3.9.0",
"gulp-bump": "^0.3.1",
"karma": "^0.12.36", "karma": "^0.12.36",
"karma-chai": "^0.1.0", "karma-chai": "^0.1.0",
"karma-chrome-launcher": "^0.1.12", "karma-chrome-launcher": "^0.1.12",