Skip to content

Instantly share code, notes, and snippets.

@martinwolf
Created August 11, 2014 15:06
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save martinwolf/aecf51e1a74371749edc to your computer and use it in GitHub Desktop.
Save martinwolf/aecf51e1a74371749edc to your computer and use it in GitHub Desktop.
gulp.task('js', function() {
gulp.src('./js/scripts.js')
.pipe(jshint())
.pipe(jshint.reporter('default'))
.pipe(addsrc('./js/_libs/*.js'))
.pipe(order([
'js/_libs/jquery-2.1.1.js',
'js/_libs/jquery.bxslider.js',
'js/_libs/jquery.form.js',
'js/_libs/cf7.js',
'js/scripts.js'
], { base: './' }))
.pipe(concat('scripts.min.js'))
.pipe(uglify({mangle: false}))
.pipe(gulp.dest('./dist/js'));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment