Skip to content

Commit

Permalink
pr note, gulp release
Browse files Browse the repository at this point in the history
  • Loading branch information
steffenmllr committed Jan 18, 2014
1 parent 67a14ca commit 64811c8
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 1 deletion.
23 changes: 23 additions & 0 deletions Gulpfile.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
var gulp = require('gulp');
var karma = require('gulp-karma');
var bump = require('gulp-bump');
var git = require('gulp-git');

// Testing
gulp.task('test', function() {
gulp.src([
'test/mocha.conf.js',
Expand All @@ -16,4 +19,24 @@ gulp.task('test', function() {
browsers: (gulp.env.travis ? ['Firefox'] : ['Chrome']),
singleRun: (gulp.env.travis ? true : false),
}));
});

// Dump the version
gulp.task('bump', function() {
gulp.src('./package.json')
.pipe(bump())
.pipe(gulp.dest('./'));

gulp.src('./bower.json')
.pipe(bump())
.pipe(gulp.dest('./'));

});

// Tag the repo with a version
gulp.task('tag', function() {
var pkg = require('./package.json');
var version = 'v' + pkg.version;
gulp.src('./')
.pipe(git.tag(version, 'Release ('+version+')'));
});
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ Default: `null`

Sets the options, that get passed into the Recaptcha.create call. Here are a list of the [available options](https://developers.google.com/recaptcha/docs/customization)

## Contribute
Pull requests are welcome. Please make sure that you include tests in your PR.

## License

[MIT License](http://en.wikipedia.org/wiki/MIT_License)
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"karma": "~0.10.9",
"gulp-karma": "0.0.2",
"mocha": "~1.17.0",
"karma-mocha": "~0.1.1"
"karma-mocha": "~0.1.1",
"gulp-bump": "~0.1.0"
},
"license": "MIT"
}

0 comments on commit 64811c8

Please sign in to comment.