'use strict';

var gulp = require('gulp'),
    noop = function () {},
    $ = require('gulp-load-plugins')({
      pattern: ['gulp-*', 'del']
    });

gulp.task('bump-version', function(){
  var bumpType = process.env.BUMP || 'patch'; // major.minor.patch

  gulp.src(['./bower.json', './package.json'])
  .pipe($.bump({ type: bumpType }))
  .pipe(gulp.dest('./'));
});

gulp.task('clean', function(cb) {
  $.del(['dist'], cb);
});

gulp.task('build', ['clean', 'scripts', 'styles']);

gulp.task('release', ['build', 'bump-version']);

@@ -525,11 +525,729 @@
 ersion'%5D
+, function (done) %7B%0A  var pkg = require('./../bower.json'),%0A      v = 'v' + pkg.version,%0A      message = 'Release ' + v;%0A%0A  gulp.src('./')%0A    .pipe($.git.add())%0A    .pipe($.git.commit(message))%0A    .pipe(gulp.dest('./'))%0A    .on('end', tag);%0A%0A  function tag()%7B%0A    $.git.tag(v, message);%0A%0A    gulp.src('changelog.sh', %7Bread: false%7D)%0A      .pipe($.shell(%5B'bash %3C%25= file.path %25%3E'%5D))%0A      .on('end', function() %7B%0A        gulp.src('./')%0A          .pipe($.git.add())%0A          .pipe($.git.commit('Update CHANGELOG.MD for ' + v + ' #nochangelog'))%0A          .pipe(gulp.dest('./'))%0A          .on('end', function() %7B%0A            $.git.push('origin', 'master', %7B args: '--tags' %7D);%0A          %7D);%0A      %7D);%0A%0A    done();%0A  %7D%0A%0A%7D
 );%0A

Fix release task to include tags and changelog #nochangelog