Matteo Scandolo | d477139 | 2015-11-04 12:41:13 +0100 | [diff] [blame] | 1 | var gulp = require('gulp'); |
| 2 | var uglify = require('gulp-uglify'); |
Matteo Scandolo | 68df51b | 2016-05-03 17:07:01 -0700 | [diff] [blame] | 3 | var concat = require('gulp-concat'); |
Matteo Scandolo | d477139 | 2015-11-04 12:41:13 +0100 | [diff] [blame] | 4 | var wiredep = require('wiredep'); |
| 5 | |
| 6 | module.exports = function(options){ |
| 7 | gulp.task('vendor', function(){ |
| 8 | var bowerDeps = wiredep().js; |
| 9 | return gulp.src(bowerDeps) |
| 10 | .pipe(concat('ngXosVendor.js')) |
Matteo Scandolo | 68df51b | 2016-05-03 17:07:01 -0700 | [diff] [blame] | 11 | .pipe(uglify()) |
Matteo Scandolo | d477139 | 2015-11-04 12:41:13 +0100 | [diff] [blame] | 12 | .pipe(gulp.dest(options.ngXosVendor)); |
| 13 | }); |
| 14 | }; |