old_contents: /* eslint-disable import/no-extraneous-dependencies */
  
  import gulp from 'gulp';
  import babel from 'gulp-babel';
  import eslint from 'gulp-eslint';
  import flow from 'gulp-flowtype';
  import util from 'gulp-util';
  import mocha from 'gulp-mocha';
  import del from 'del';
  import webpack from 'webpack-stream';
  import webpackConfig from './webpack.config.babel';
  
  const paths = {
    allSrcJs: 'src/**/*.js?(x)',
    serverSrcJs: 'src/server/**/*.js?(x)',
    sharedSrcJs: 'src/shared/**/*.js?(x)',
    allLibTests: 'lib/test/**/*.js',
    clientEntryPoint: 'src/client/app.jsx',
    clientBundle: 'dist/client-bundle.js?(.map)',
    gulpFile: 'gulpfile.babel.js',
    webpackFile: 'webpack.config.babel.js',
    libDir: 'lib',
    distDir: 'dist',
  };
  
  gulp.task('lint', () =>
    gulp.src([
      paths.allSrcJs,
      paths.gulpFile,
      paths.webpackFile,
    ])
    .pipe(eslint())
    .pipe(eslint.format())
    .pipe(flow({ abort: true }))
  );
  
  gulp.task('clean', () => del([
    paths.libDir,
    paths.clientBundle,
  ]));
  
  gulp.task('build', ['lint', 'clean'], () =>
    gulp.src(paths.allSrcJs)
      .pipe(babel())
      .pipe(gulp.dest(paths.libDir))
  );
  
  gulp.task('test', ['build'], () =>
    gulp.src(paths.allLibTests)
      .pipe(mocha())
  );
  
  gulp.task('main', ['test'], () =>
    gulp.src(paths.clientEntryPoint)
      .pipe(webpack(webpackConfig))
      .pipe(gulp.dest(paths.distDir))
      .on('error', util.log)
  );
  
  gulp.task('watch', () => {
    gulp.watch(paths.allSrcJs, ['main']);
  });
  
  gulp.task('default', ['watch', 'main']);
  
new_contents: /* eslint-disable import/no-extraneous-dependencies */
  
  import gulp from 'gulp';
  import babel from 'gulp-babel';
  import eslint from 'gulp-eslint';
  //import flow from 'gulp-flowtype';
  import util from 'gulp-util';
  import mocha from 'gulp-mocha';
  import del from 'del';
  import webpack from 'webpack-stream';
  import webpackConfig from './webpack.config.babel';
  
  const paths = {
    allSrcJs: 'src/**/*.js?(x)',
    serverSrcJs: 'src/server/**/*.js?(x)',
    sharedSrcJs: 'src/shared/**/*.js?(x)',
    allLibTests: 'lib/test/**/*.js',
    clientEntryPoint: 'src/client/app.jsx',
    clientBundle: 'dist/client-bundle.js?(.map)',
    gulpFile: 'gulpfile.babel.js',
    webpackFile: 'webpack.config.babel.js',
    libDir: 'lib',
    distDir: 'dist',
  };
  
  gulp.task('lint', () =>
    gulp.src([
      paths.allSrcJs,
      paths.gulpFile,
      paths.webpackFile,
    ])
    .pipe(eslint())
    .pipe(eslint.format())
  );
  
  gulp.task('clean', () => del([
    paths.libDir,
    paths.clientBundle,
  ]));
  
  gulp.task('build', ['lint', 'clean'], () =>
    gulp.src(paths.allSrcJs)
      .pipe(babel())
      .pipe(gulp.dest(paths.libDir))
  );
  
  gulp.task('test', ['build'], () =>
    gulp.src(paths.allLibTests)
      .pipe(mocha())
  );
  
  gulp.task('main', ['test'], () =>
    gulp.src(paths.clientEntryPoint)
      .pipe(webpack(webpackConfig))
      .pipe(gulp.dest(paths.distDir))
      .on('error', util.log)
  );
  
  gulp.task('watch', () => {
    gulp.watch(paths.allSrcJs, ['main']);
  });
  
  gulp.task('default', ['watch', 'main']);
  
subject: Disable gulp flow