Add gulp bump
This commit is contained in:
parent
4aa7a90586
commit
363cc72ebf
11
README.md
11
README.md
@ -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.
|
||||||
|
@ -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('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']);
|
||||||
|
@ -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",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user