summaryrefslogtreecommitdiffstats
path: root/ecomp-portal-FE/client/bower_components/jquery.newstape/gulpfile.js
blob: 68104cd07edcdb4902dae0e8bc19cad0a1344f37 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
var gulp = require('gulp'),
    uglify = require('gulp-uglify'),
    rename = require('gulp-rename'),
    clean = require('gulp-clean');

gulp.task('minjs', function() {
  return gulp.src(['jquery.newstape.js'])
    .pipe(uglify())
    .pipe(rename({
      suffix: ".min"
    }))
    .pipe(gulp.dest('dist'));
});

gulp.task('clean', function() {
  return gulp.src(['dist/**/.*'], {read: false})
    .pipe(clean());
});

gulp.task('default', ['clean', 'minjs'], function() {

});