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/de76e0ad73a42f28e7ab1a9e42d1888e to your computer and use it in GitHub Desktop.
Save typeoneerror/de76e0ad73a42f28e7ab1a9e42d1888e 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