'use strict';

var gulp = require('gulp'),
    fs = require('fs'),
    plumber = require('gulp-plumber');

var options = {
  source: 'templates',
  dist: 'dist',
  workingDir: 'tmp',
  src: function plumbedSrc(){
    return gulp.src.apply(gulp, arguments).pipe(plumber());
  }
};

/** Load tasks from the '/tasks' directory.
 * Look for .js & .coffee files.
 * Each file should correspond to a task.
 */
fs
  .readdirSync('./tasks')
  .filter(function readJSFiles(file) {
    return (/\.(js|coffee)$/i).test(file);
  })
  .map(function loadTasks(file) {
    require('./tasks/' + file)(options);
  });

/** By default templates will be built into '/dist', then gulp will watch for changes in '/src'. */
gulp.task('default', ['dupe', 'less', 'sass', 'postcss', 'lint', 'build']);

@@ -225,12 +225,26 @@
 gulp
-.src
+%0A      .src%0A      
 .app
@@ -262,16 +262,23 @@
 guments)
+%0A      
 .pipe(pl
@@ -726,16 +726,19 @@
 lp.task(
+%0A  
 'default
@@ -744,17 +744,25 @@
 t', 
-%5B
+%0A  %5B%0A    
 'dupe', 
 'les
@@ -761,23 +761,32 @@
 e', 
+%0A    
 'less',
+%0A   
  'sass',
  'po
@@ -781,16 +781,20 @@
  'sass',
+%0A   
  'postcs
@@ -800,16 +800,20 @@
 ss',
+%0A   
  'lint',
  'bu
@@ -812,16 +812,20 @@
 nt',
+%0A   
  'build'
 %5D);%0A
@@ -824,8 +824,12 @@
 ild'
-%5D
+%0A  %5D%0A
 );%0A

Split some main gulpfile calls for better readability