forked from jimobrien/ngMorph
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gulpfile.js
49 lines (40 loc) · 1.11 KB
/
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
var gulp = require('gulp'),
concat = require('gulp-concat'),
uglify = require('gulp-uglify'),
notify = require('gulp-notify');
var paths = {
scripts: [
'src/transitions/transitions.js',
'src/transitions/modal.js',
'src/transitions/expand.js',
'src/transitions/overlay.js',
'src/directives/directives.js',
'src/directives/modal.js',
'src/directives/overlay.js',
'src/morphAssist.js',
'src/morph.js',
'src/app.js'
],
source: ['src/**/*.js'],
dist: './dist/'
};
gulp.task('concat', function(){
return gulp.src(paths.scripts)
.pipe(concat('angular-morph.js'))
.pipe(gulp.dest(paths.dist));
// .pipe(notify({message: 'Build Done'}));
});
gulp.task('uglify',function(){
return gulp.src('./dist/angular-morph.js')
.pipe(uglify())
.pipe(concat('angular-morph.min.js'))
.pipe(gulp.dest(paths.dist))
.pipe(notify({message: 'Build Done'}));
});
gulp.task('test', function () {
});
gulp.task('build', ['concat', 'uglify']);
gulp.task('watch', function(){
gulp.watch(paths.source, ['build']);
});
gulp.task('default', ['build','watch']);