Skip to content

Instantly share code, notes, and snippets.

@typeoneerror
Created November 2, 2016 18:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save typeoneerror/6ba7196d95cff0b9cac0e24e78d175ec to your computer and use it in GitHub Desktop.
Save typeoneerror/6ba7196d95cff0b9cac0e24e78d175ec to your computer and use it in GitHub Desktop.
// Compile javascript files from source
gulp.task('babel', function(cb) {
return gulp.src(paths.scripts)
.pipe(plumber())
.pipe(babel({presets: ['es2015']}))
.pipe(gulp.dest(paths.scripts_compiled))
.pipe(gulp.dest(path.join(paths.theme_dir, scripts_dir, source_dir)))
.on('error', handleError);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment