Skip to content

Instantly share code, notes, and snippets.

@stefanolaru
Created May 25, 2016 08:20
Show Gist options
  • Save stefanolaru/6c16ec554070cb5dbc945b5fad7ec41d to your computer and use it in GitHub Desktop.
Save stefanolaru/6c16ec554070cb5dbc945b5fad7ec41d to your computer and use it in GitHub Desktop.
var gulp = require('gulp');
var $ = require('gulp-load-plugins')();
$.concat = require('gulp-concat');
gulp.task('default', function() {
return gulp.src([
'js/foundation.core.js',
'js/foundation.util.box.js',
'js/foundation.util.keyboard.js',
'js/foundation.util.mediaQuery.js',
'js/foundation.util.motion.js',
'js/foundation.util.nest.js',
'js/foundation.util.timerAndImageLoader.js',
'js/foundation.util.touch.js',
'js/foundation.util.triggers.js'
])
// .pipe($.sourcemaps.init())
.pipe($.babel()) // <-- There it is!
.pipe($.concat('foundation.js'))
.pipe(gulp.dest('../../js/'));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment