       grunt.log.error()
       grunt.log.error(p.output)
       grunt.warn "Non-zero exit code for `#{command}`."
+
+  versionBump = (version, versionType) ->
+    type = major: 0, minor: 1, patch: 2
+    parts = version.split('.')
+    idx = type[versionType || 'patch']
+
+    parts[idx] = parseInt(parts[idx], 10) + 1
+    while ++idx < parts.length
+      parts[idx] = 0
+    return parts.join('.')

shell = require 'shelljs'
module.exports = (grunt) ->

  # Project configuration.
  grunt.initConfig
    # Metadata.
    pkg: grunt.file.readJSON 'sieve.jquery.json'
    basename: 'jquery.<%= pkg.name %>'
    headline: '<%= pkg.title || pkg.name %> v<%= pkg.version %>'
    copyright: '<%= grunt.template.today("yyyy") %> <%= pkg.author.name %>'

    run "git push origin gh-pages"
    run "git push --tags"

  shell = require 'shelljs'
  run = (command) ->
    grunt.log.write "Running `#{command}`..."
    p = shell.exec(command, silent: true)
