var gulp = require('gulp');
var jshint = require('gulp-jshint');
var stylish = require('jshint-stylish');
var concat = require('gulp-concat');
var uglify = require('gulp-uglify');
var sourcemaps = require('gulp-sourcemaps');
var clean = require('gulp-clean')

var paths = {
  scripts: ['src/js/**/*.js']
};

gulp.task('scripts', ['clean'], function() {
  return gulp.src(paths.scripts)
    .pipe(jshint())
    .pipe(jshint.reporter('jshint-stylish'))
    .pipe(sourcemaps.init())
    .pipe(uglify())
    .pipe(concat('all.min.js'))
    .pipe(sourcemaps.write('../maps'))
    .pipe(gulp.dest('dist/js/'))
});

gulp.task('clean', function () {
  return gulp.src('dist')
    .pipe(clean());
});

@@ -681,12 +681,136 @@
 ean());%0A%7D);%0A
+%0Agulp.task('watch', function() %7B%0A  gulp.watch(paths.scripts, %5B'scripts'%5D);%0A%7D);%0A%0Agulp.task('default', %5B'watch', 'scripts'%5D);%0A

Add watch task