-
-
Save csharpfritz/688dac523b0dec3ac51bd87ecb59254e to your computer and use it in GitHub Desktop.
Gulp task to manage JavaScriptr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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