Skip to content

Commit

Permalink
Don't need to bump README anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielelana committed Mar 5, 2014
1 parent 7ac5250 commit e8dbc0a
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,23 +80,13 @@ module.exports = function(grunt) {
grunt.registerTask('spec-on-head', ['build', 'run-all-specs:head'])
grunt.registerTask('spec-on-installed', ['run-all-specs:installed'])

grunt.registerTask('release-and-tag', ['copy:release', 'bump-readme:minor', 'release:minor'])
grunt.registerTask('fix-and-tag', ['copy:release', 'bump-readme:patch', 'release:patch'])
grunt.registerTask('release-and-tag', ['copy:release', 'release:minor'])
grunt.registerTask('fix-and-tag', ['copy:release', 'release:patch'])

grunt.registerTask('default', ['spec'])



grunt.registerTask('bump-readme', 'Bump version in README.md', function(howToBump) {
var readme = grunt.file.read('README.md'),
pkg = grunt.file.readJSON('package.json')

readme = readme.replace(new RegExp('download/' + pkg.version), function(match) {
return 'download/' + require('semver').inc(pkg.version, howToBump || 'patch')
})
grunt.file.write('README.md', readme)
})

grunt.registerTask('run-all-specs', 'Run all specs in MongoDB Shell', function(onWhat) {
var done = this.async(),
path = require('path'),
Expand Down

0 comments on commit e8dbc0a

Please sign in to comment.