Skip to content

Instantly share code, notes, and snippets.

@csharpfritz
Created April 29, 2016 11:28
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 csharpfritz/688dac523b0dec3ac51bd87ecb59254e to your computer and use it in GitHub Desktop.
Save csharpfritz/688dac523b0dec3ac51bd87ecb59254e to your computer and use it in GitHub Desktop.
Gulp task to manage JavaScriptr
gulp.task("js", function () {
// jQuery
gulp.src("bower_components/jquery/jquery.min.*")
.pipe(gulp.dest("Scripts"));
// Modernizr
gulp.src("bower_components/modernizer/modernizr.js")
.pipe(gulp.dest("Scripts"));
// Respond
gulp.src("bower_components/respond/respond.min.js")
.pipe(gulp.dest("Scripts"));
// MSAjaxBundle
gulp.src("Scripts/WebForms/MSAjax/*.js")
.pipe(concat("Scripts/MSAjax.min.js"))
.pipe(uglify())
.pipe(gulp.dest("."));
// WebFormsBundle
gulp.src("Scripts/WebForms/*.js")
.pipe(concat("Scripts/WebForms.min.js"))
.pipe(uglify())
.pipe(gulp.dest("."));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment