Matteo Scandolo | b0238d3 | 2015-11-04 16:03:59 +0100 | [diff] [blame] | 1 | var gulp = require('gulp'); |
| 2 | var uglify = require('gulp-uglify'); |
| 3 | var concat = require("gulp-concat"); |
| 4 | var ngAnnotate = require('gulp-ng-annotate'); |
| 5 | var angularFilesort = require('gulp-angular-filesort'); |
| 6 | |
| 7 | module.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 | }; |