var gulp = require('gulp');
var babel = require('gulp-babel');
var sass = require('gulp-sass');
var eslint = require('gulp-eslint');

gulp.task('build', function() {
  var concat = require('gulp-concat');
  var buildSrc = gulp.src(['src/index.js', 'src/**/*.js'])
  .pipe(babel({ presets: ["es2015"] }))
  .pipe(concat('libretto.js'))
  .pipe(gulp.dest('build'));

  var buildSpec = gulp.src('spec/**/*_spec.js')
  .pipe(babel({ presets: ["es2015"] }))
  .pipe(concat('spec.js'))
  .pipe(gulp.dest('build'));

  var buildCss = gulp.src('css/**/*.{sass,scss}')
  .pipe(sass().on('error', sass.logError))
  .pipe(gulp.dest('build'));

  return [buildSrc, buildSpec, buildCss];
});

gulp.task('gh-pages', function() {
  var copyRaw = gulp.src('gh-pages/**/*.{html,svg,png}', { base: 'gh-pages' })
  .pipe(gulp.dest('build'));
  var buildCoffee = gulp.src('gh-pages/index.js')
  .pipe(babel({ presets: ["es2015"] }))
  .pipe(gulp.dest('build'));
  var buildCss = gulp.src('gh-pages/index.sass')
  .pipe(sass().on('error', sass.logError))
  .pipe(gulp.dest('build'));
  return [copyRaw, buildCoffee, buildCss];
});

gulp.task('build', function() {
  var concat = require('gulp-concat');
  var buildSrc = gulp.src(['src/index.js', 'src/**/*.js'])
  .pipe(babel({ presets: ["es2015"] }))
  .pipe(concat('libretto.js'))
  .pipe(gulp.dest('build'));

  var buildSpec = gulp.src('spec/**/*_spec.js')
  .pipe(babel({ presets: ["es2015"] }))
  .pipe(concat('spec.js'))
  .pipe(gulp.dest('build'));

  var buildCss = gulp.src('css/**/*.{sass,scss}')
  .pipe(sass().on('error', sass.logError))
  .pipe(gulp.dest('build'));

  return [buildSrc, buildSpec, buildCss];
});

gulp.task('lint', function () {
  return gulp.src(['src/**/*.js'])
  .pipe(eslint())
  .pipe(eslint.format())
  .pipe(eslint.failAfterError());
});

@@ -131,554 +131,8 @@
 );%0A%0A
-gulp.task('build', function() %7B%0A  var concat = require('gulp-concat');%0A  var buildSrc = gulp.src(%5B'src/index.js', 'src/**/*.js'%5D)%0A  .pipe(babel(%7B presets: %5B%22es2015%22%5D %7D))%0A  .pipe(concat('libretto.js'))%0A  .pipe(gulp.dest('build'));%0A%0A  var buildSpec = gulp.src('spec/**/*_spec.js')%0A  .pipe(babel(%7B presets: %5B%22es2015%22%5D %7D))%0A  .pipe(concat('spec.js'))%0A  .pipe(gulp.dest('build'));%0A%0A  var buildCss = gulp.src('css/**/*.%7Bsass,scss%7D')%0A  .pipe(sass().on('error', sass.logError))%0A  .pipe(gulp.dest('build'));%0A%0A  return %5BbuildSrc, buildSpec, buildCss%5D;%0A%7D);%0A%0A
 gulp
@@ -1248,12 +1248,54 @@
 ror());%0A%7D);%0A
+%0Agulp.task('default', %5B'lint', 'build'%5D);%0A

Remove redundant task and set default