'use strict';

var gulp = require('gulp');
var plugins = require('gulp-load-plugins')();
var util = require('./util');

gulp.task('format-css', function() {
  return gulp.src(['app/styles/**/*.css', 'app/styles/**/*.scss'])
    .pipe(plugins.plumber(util.logError))
    .pipe(plugins.csscomb())
    .pipe(plugins.cssbeautify({
      indent: '  '
    }))
    .pipe(gulp.dest('app/styles'));
});

gulp.task('format-javascript', function() {
  return gulp.src(['tasks/*.js', 'app/scripts/**/*.js'])
    .pipe(plugins.plumber(util.logError))
    .pipe(plugins.esformatter())
    .pipe(plugins.if('**/tasks/*.js', gulp.dest('tasks')))
    .pipe(plugins.if('**/app/scripts/**/*.js', gulp.dest('app/scripts')));
});

gulp.task('format', ['format-css', 'format-javascript']);

@@ -168,17 +168,16 @@
 ulp.src(
-%5B
 'app/sty
@@ -189,37 +189,19 @@
 */*.
+%7B
 css
-', 'app/styles/**/*.
+,
 scss
+%7D
 '
-%5D
 )%0A  

Simplify glob