Skip to content
This repository has been archived by the owner on Oct 5, 2020. It is now read-only.

Commit

Permalink
Merge pull request #3 from ryan321/gulp-excludes2
Browse files Browse the repository at this point in the history
excluding bower and vendor js paths from jshint and minify
  • Loading branch information
dmcassel committed Jun 12, 2014
2 parents a94c2d6 + 1501eab commit 9210fe9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/templates/gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ var options = {
};

gulp.task('jshint', function() {
gulp.src('ui/app/**/*.js')
gulp.src(['ui/app/**/*.js', '!ui/app/bower_components/**/*.js', '!ui/app/scripts/vendor/**/*.js'])
.pipe(jshint())
.pipe(jshint.reporter('default'));
});
Expand All @@ -44,7 +44,7 @@ gulp.task('less', function() {

// Concatenate & Minify JS
gulp.task('scripts', function() {
return gulp.src('./ui/app/**/*.js')
return gulp.src(['./ui/app/**/*.js', '!ui/app/bower_components/**/*.js', '!ui/app/scripts/vendor/**/*.js'])
.pipe(concat('all.js'))
.pipe(gulp.dest('dist'))
.pipe(rename('all.min.js'))
Expand Down

0 comments on commit 9210fe9

Please sign in to comment.