forked from t1m0n/air-datepicker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.js
41 lines (29 loc) · 1.01 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
var gulp = require('gulp'),
watch = require('gulp-watch'),
livereload = require('gulp-livereload');
gulp.task('css', require('./tasks/css'));
gulp.task('js', require('./tasks/js'));
gulp.task('i18n', require('./tasks/i18n'));
gulp.task('cssPage', require('./tasks/cssPage'));
gulp.task('jade', require('./tasks/jade'));
var gzip = require('gulp-gzip');
gulp.task('gzip', function (cb) {
gulp.src('dist/js/datepicker.min.js')
.pipe(gzip())
.pipe(gulp.dest('dist/'))
});
gulp.task('watch', function () {
livereload.listen();
gulp.watch('src/sass/*.scss', ['css']).on('change', function (file) {
livereload.changed(file)
});
gulp.watch('src/js/**/*.js', ['js']).on('change', function (file) {
livereload.changed(file)
});
gulp.watch('docs/sass/*.scss', ['cssPage']).on('change', function (file) {
livereload.changed(file)
});
gulp.watch('docs/jade/**/*.jade', ['jade']).on('change', function (file) {
livereload.changed(file)
});
});