diff --git a/README.md b/README.md index a049a94..4d1fe80 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/gulpfile.js b/gulpfile.js index 324faed..35c3e12 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -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) { @@ -28,4 +29,10 @@ gulp.task('update_examples', function() { updateExample('test/testrunner.html'); }); -gulp.task('default', ['update_examples']); \ No newline at end of file +gulp.task('bump', function() { + gulp.src(["./package.json", "./bower.json"]) + .pipe(bump({type:'patch'})) + .pipe(gulp.dest('./')); +}); + +gulp.task('default', ['update_examples']); diff --git a/package.json b/package.json index a1e3c7c..6d4e567 100644 --- a/package.json +++ b/package.json @@ -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",