blob: c11ef9e82c84bba61f4152e8121c0ce6a0e3d991 [file] [log] [blame]
Matteo Scandolo3bb37fe2015-11-04 12:41:13 +01001var gulp = require('gulp');
2var uglify = require('gulp-uglify');
Matteo Scandolofd564432016-05-03 17:07:01 -07003var concat = require('gulp-concat');
Matteo Scandolo3bb37fe2015-11-04 12:41:13 +01004var wiredep = require('wiredep');
5
6module.exports = function(options){
7 gulp.task('vendor', function(){
8 var bowerDeps = wiredep().js;
9 return gulp.src(bowerDeps)
10 .pipe(concat('ngXosVendor.js'))
Matteo Scandolofd564432016-05-03 17:07:01 -070011 .pipe(uglify())
Matteo Scandolo3bb37fe2015-11-04 12:41:13 +010012 .pipe(gulp.dest(options.ngXosVendor));
13 });
14};