forked from sahat/satellizer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgulpfile.js
More file actions
29 lines (24 loc) · 754 Bytes
/
gulpfile.js
File metadata and controls
29 lines (24 loc) · 754 Bytes
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
var gulp = require('gulp');
var rename = require('gulp-rename');
var uglify = require('gulp-uglify');
var plumber = require('gulp-plumber');
var complexity = require('gulp-complexity');
gulp.task('minify', function() {
return gulp.src('satellizer.js')
.pipe(plumber())
.pipe(uglify())
.pipe(rename('satellizer.min.js'))
.pipe(gulp.dest('.'));
});
gulp.task('copy', function() {
return gulp.src(['satellizer.js', 'satellizer.min.js'])
.pipe(gulp.dest('examples/client/vendor'));
});
gulp.task('complexity', function() {
return gulp.src('satellizer.js')
.pipe(complexity());
});
gulp.task('watch', function() {
gulp.watch('src/*.js', ['concat', 'copy', 'minify']);
});
gulp.task('default', ['copy', 'minify', 'watch']);