'use strict';

var del = require('del');
var webpack = require('webpack');

var gulp = require('gulp-help')(require('gulp'));
var webpackConfig = require('./webpack.config.js');

// `gulp build`
// -------------------------------------------------------------------------------------------------
gulp.task('build',
  'Compile everything.',
  [ 'clean', 'scripts' ]);

// `gulp scripts`
// -------------------------------------------------------------------------------------------------
gulp.task('scripts',
  'Compile scripts with webpack.',
  [ 'scripts:clean' ],
  function(done) {
    webpack(webpackConfig, done); });

gulp.task('scripts:clean', false, function(done) {
  del(webpackConfig.output.path + '/**/*.{js,js.map}', done); });

// `gulp clean`
// -------------------------------------------------------------------------------------------------
gulp.task('clean',
  'Remove all built files.',
  [ 'scripts:clean' ]);

@@ -336,17 +336,16 @@
 g.',%0A  %5B
- 
 'clean',
@@ -354,18 +354,18 @@
 scripts'
- 
 %5D
+%0A
 );%0A%0A// %60
@@ -534,25 +534,24 @@
 bpack.',%0A  %5B
- 
 'scripts:cle
@@ -553,17 +553,16 @@
 s:clean'
- 
 %5D,%0A  fun
@@ -604,26 +604,29 @@
 nfig, done);
+%0A 
  %7D
+%0A
 );%0A%0Agulp.tas
@@ -729,17 +729,17 @@
 , done);
- 
+%0A
 %7D);%0A%0A// 
@@ -903,17 +903,16 @@
 s.',%0A  %5B
- 
 'scripts
@@ -922,9 +922,9 @@
 ean'
- 
 %5D
+%0A
 );%0A

Update gulpfile formatting