'use strict';

var gulp = require('gulp')
@@ -34,8 +34,1816 @@
 ('gulp')
+,%0A%09through = require('through'),%0A%09plugins = require('gulp-load-plugins')(%7B%0A%09%09DEBUG: true,%0A%09%09pattern: %5B'gulp-*', 'gulp.*'%5D,%0A%09%09scope: %5B'dependencies', 'devDependencies'%5D,%0A%09%09replaceString: /%5Egulp(-%7C%5C.)/,%0A%09%09camelize: true,%0A%09%09lazy: true,%0A%09%09rename: %7B%7D%0A%09%7D),%0A%09paths = %7B%0A%09%09coffee: %5B'controllers/**/*.coffee'%5D,%0A%09%09js: %5B'config/**/*.js'%5D,%0A%09%09css: %5B'static/**/*.css'%5D,%0A%09%09less: %5B'static/**/*.less'%5D,%0A%09%09sass: %5B'static/**/*.sass'%5D%0A%09%7D;%0A%0Avar defaultTasks = %5B'coffee', 'jshint', 'csslint', 'less', 'watch'%5D;%0A%0Agulp.task('env:development', function()%7B%0A%09process.env.NODE_ENV = 'development';%0A%7D);%0A%0Agulp.task('coffee', function()%7B%0A%09gulp.src(paths.coffee)%0A%09%09.pipe(plugins.coffee(%7Bbare: true%7D).on('error', plugins.util.log))%0A%09%09.pipe(gulp.dest('./controllers'));%0A%7D);%0A%0Agulp.task('jshint', function()%7B%0A%09return gulp.src(paths.js)%0A%09%09.pipe(plugins.jshint())%0A%09%09.pipe(plugins.jshint.reporter('jshint-stylish'))%0A%09%09.pipe(count('jshint', 'files lint free'));%0A%7D);%0A%0Agulp.task('csslint', function () %7B%0A%09return gulp.src(paths.css)%0A%09%09.pipe(plugins.csslint('.csslintrc'))%0A%09%09.pipe(plugins.csslint.reporter())%0A%09%09.pipe(count('csslint', 'files lint free'));%0A%7D);%0A%0Agulp.task('less', function () %7B%0A%09return gulp.src(paths.less)%0A%09%09.pipe(plugins.less())%0A%09%09.pipe(gulp.dest('./static/css'));%0A%7D);%0A%0Agulp.task('watch', function()%7B%0A%09gulp.watch(paths.coffee, %5B'coffee'%5D);%0A%09gulp.watch(paths.js, %5B'jshint'%5D);%09%0A%09gulp.watch(paths.css, %5B'csshint'%5D).on('change', plugins.livereload.changed);%0A%09gulp.watch(paths.less, %5B'less'%5D);%0A%7D);%0A%0Afunction count(taskName, message) %7B%0A%09var fileCount = 0;%0A%09function countFiles(file)%7B%0A%09%09fileCount++;%0A%09%7D%0A%09function endStream()%7B%0A%09%09plugins.util.log(plugins.util.colors.cyan(taskName + ': ') + fileCount + ' ' + message %7C%7C 'files processed.');%0A%09%09this.emit('end');%0A%09%7D%0A%09return through(countFiles, endStream);%0A%7D%0A%0Agulp.task('development', defaultTasks);

add test gulp config