blob: cc68513b00214f5c65786eb350c01d432c1a2721 [file] [log] [blame]
Matteo Scandolob0238d32015-11-04 16:03:59 +01001var gulp = require('gulp');
2var uglify = require('gulp-uglify');
3var concat = require("gulp-concat");
4var ngAnnotate = require('gulp-ng-annotate');
5var angularFilesort = require('gulp-angular-filesort');
6
7module.exports = function(options){
8 gulp.task('helpers', function(){
9 return gulp.src([options.xosHelperSource + '**/*.js'])
10 .pipe(angularFilesort())
11 .pipe(concat('ngXosHelpers.js'))
12 .pipe(ngAnnotate())
13 .pipe(uglify())
14 .pipe(gulp.dest(options.ngXosVendor));
15 });
16};