Skip to content

Instantly share code, notes, and snippets.

@Sulcalibur
Created September 18, 2015 11:15
Show Gist options
  • Save Sulcalibur/1d83d56bbb0af56eb0a4 to your computer and use it in GitHub Desktop.
Save Sulcalibur/1d83d56bbb0af56eb0a4 to your computer and use it in GitHub Desktop.
Gulp file to concat coffee script and javascript
gulp.task('scriptspre', function() {
return gulp.src([
'project/assets/scripts/scriptspre.coffee',
'bower_components/modernizr/modernizr.js'
])
.pipe(coffee())
.pipe(sourcemaps.init())
.pipe(concat('pre.js'))
.pipe(sourcemaps.write())
.pipe(gulp.dest('build/assets/js/'));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment