var gulp = require('gulp');
var concat = require('gulp-concat');
var header = require('gulp-header');
var jscs = require('gulp-jscs');
var jshint = require('gulp-jshint');
var rename = require('gulp-rename');
var size = require('gulp-size');
var uglify = require('gulp-uglify');

var files = ['src/DOMTokenList-newest.js', 'src/DOMTokenList.js', 'src/classList.js', 'src/relList.js'];

gulp.task('concat', ['lint'], function () {
    return gulp.src(files)
        .pipe(concat('domtokenlist.js'))
        .pipe(header('/*! DOMTokenlist shim | Copyright <%= new Date().getFullYear() %> Jonathan Wilsson and Bogdan Chadkin. */\n'))
        .pipe(size({
            showFiles: true
        }))
        .pipe(gulp.dest('./dist'));
});

gulp.task('lint', function () {
    return gulp.src(files)
        .pipe(jscs())
        .on('error', function (err) {
            console.log(err.message);
        })
        .pipe(jshint())
        .pipe(jshint.reporter('default'));
});

gulp.task('uglify', ['concat'], function () {
    return gulp.src('dist/domtokenlist.js')
        .pipe(uglify({
            preserveComments: 'some'
        }))
        .pipe(rename({
            suffix: '.min'
        }))
        .pipe(size({
            showFiles: true
        }))
        .pipe(gulp.dest('./dist'));
});

gulp.task('dev', function () {
    gulp.start('default');
    gulp.watch(files, ['default']);
});

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

@@ -289,99 +289,23 @@
 s = 
-%5B'src/DOMTokenList-newest.js', 'src/DOMTokenList.js', 'src/classList.js', 'src/relList
+'./src/**/*
 .js'
-%5D
 ;%0A%0Ag
@@ -1231,54 +1231,42 @@
 sk('
-dev', function () %7B%0A    gulp.start('default');
+watch', %5B'default'%5D, function () %7B
 %0A   

Rearrange gulpfile