-
Notifications
You must be signed in to change notification settings - Fork 38
/
Copy pathgulpfile.js
29 lines (24 loc) · 864 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
(function (){
'use strict';
var gulp = require('gulp'),
uglify = require('gulp-uglify'),
rename = require('gulp-rename'),
ngAnnotate = require('gulp-ng-annotate'),
sourcemaps = require('gulp-sourcemaps');
gulp.task('js', function (){
return gulp.src('./src/angular-material-design-lite.js')
.pipe(gulp.dest('./dist'))
.pipe(rename('angular-material-design-lite.min.js'))
.pipe(sourcemaps.init())
.pipe(ngAnnotate())
.pipe(uglify())
.pipe(sourcemaps.write('./'))
.pipe(gulp.dest('./dist'))
.pipe(gulp.dest('./documentation/js'));
});
gulp.task('watch', function (){
gulp.watch('./src/angular-material-design-lite.js', ['js']);
return true;
});
gulp.task('default', ['js']);
})();