forked from paquettea/angular-ie-clearfield-databinding
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.js
32 lines (26 loc) · 774 Bytes
/
gulpfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
var gulp = require('gulp');
var uglify = require('gulp-uglify');
var concat = require('gulp-concat');
var del = require('del');
var ngAnnotate = require('gulp-ng-annotate');
function uglifyTask() {
return gulp.src('dist/**/*.js')
.pipe(concat('angular-ie-clearfield-databinding.min.js'))
.pipe(uglify())
.pipe(gulp.dest('dist'));
}
function annotateTask() {
return gulp.src([
'src/**/module.js',
'src/**/*.js'])
.pipe(concat('angular-ie-clearfield-databinding.js'))
.pipe(ngAnnotate())
.pipe(gulp.dest('dist'));
}
function cleanTask(cb) {
del('dist/', cb);
}
//function postBuildCleanTask(){
// del('build/', cb);
//}
gulp.task('default', gulp.series(cleanTask, annotateTask, uglifyTask));