forked from michaeloryl/ng-persist
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgulpfile.js
34 lines (27 loc) · 772 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
33
34
var concat = require('gulp-concat');
var gulp = require('gulp');
var ngAnnotate = require('gulp-ng-annotate');
var plumber = require('gulp-plumber');
var babel = require('gulp-babel');
(function(){
'use strict';
var paths = {
src : './src/ng-persist.js',
dist : './dist/',
};
var build = function () {
gulp
.src(paths.src)
.pipe(plumber())
.pipe(ngAnnotate())
.pipe(babel())
.pipe(concat('ng-persist.js'))
.pipe(gulp.dest(paths.dist));
};
gulp.task('build', build);
gulp.task('default', ['build']);
gulp.task('watch', function() {
build();
gulp.watch(paths.src, ['build']);
});
})();