'use strict';

const globs = require('../globs');
const {noop, normalizeGlobDirList} = require('../utils');

module.exports = (gulp, plugins, {dirs, watch = false, done = noop} = {}) => {
  const files = typeof dirs === 'string' ?
    globs.babel(normalizeGlobDirList(dirs)) :
    globs.babel();

  gulp.task('no-transpile', watch ? ['no-transpile:watch'] : ['_no-transpile']);

  gulp.task('no-transpile:watch', ['_no-transpile'], () => {
    console.log('Watching', files);
    gulp.watch(files, ['_notranspile']);
  });

  gulp.task('_no-transpile', () => {
    console.log('Restarting Server...');
    return Promise.resolve().then(done);
  });
};

@@ -437,44 +437,8 @@
 %3E %7B%0A
-    console.log('Watching', files);%0A
     
@@ -519,62 +519,8 @@
 ) =%3E
- %7B%0A    console.log('Restarting Server...');%0A    return
  Pro
@@ -544,19 +544,14 @@
 en(done)
-;%0A  %7D
 );%0A%7D;%0A

remove logs