code: function setVersion(type, suffix) {
          var file = 'package.json',
              VERSION_REGEX = /([\'|\"]version[\'|\"][ ]*:[ ]*[\'|\"])([\d|.]*)(-\w+)*([\'|\"])/,
              contents = grunt.file.read(file),
              version;
          contents = contents.replace(VERSION_REGEX, function(match, left, center) {
              version = center;
              if (type) {
                  version = require('semver').inc(version, type);
              }
              //semver.inc strips our suffix if it existed
              if (suffix) {
                  version += '-' + suffix;
              }
              return left + version + '"';
          });
          grunt.log.ok('Version set to ' + version.cyan);
          grunt.file.write(file, contents);
          return version;
      }
docs: Sets version in 'package.json' in http://semver.org friendly mode
  
  @param {String} type   Could be 'major', 'minor' or 'patch'
  @param {String} suffix Suffic string, example: 'alpha', 'pre-alpha', 'beta'