var src = ['src/**', 'sw/**'];
var deployDir = 'docs';

var gulp = require('gulp');
var clean = require('gulp-clean');
var jshint = require('gulp-jshint');

gulp.task('default', ['copy']);

gulp.task('copy', ['clean', 'js-lint'], function() {
    return gulp.src(src)
        .pipe(gulp.dest(deployDir));
});

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

gulp.task('js-lint', function() {
    return gulp.src(src.map(function(path) {
        return path+'/*.js';
    }))
        .pipe(jshint({
            eqeqeq: true,
            esversion: 6,
            eqnull: true
        }))
        .pipe(jshint.reporter('jshint-stylish'))
        .pipe(jshint.reporter('fail'));
});

gulp.task('serve', function() {
    var browserSync = require('browser-sync');
    browserSync({
        server: {
            baseDir: "./src/"
        },
        notify: false
    });
    gulp.watch(["./src/*"], browserSync.reload);
});

@@ -212,19 +212,16 @@
 lean', '
-js-
 lint'%5D, 
@@ -407,11 +407,8 @@
 sk('
-js-
 lint

Rename gulp task js-lint to lint