forked from t1m0n/air-datepicker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.js
38 lines (27 loc) · 1.1 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
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-ru', require('./tasks/jade').ru);
gulp.task('jade-en', require('./tasks/jade').en);
gulp.task('gzip', require('./tasks/gzip'));
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-ru', 'jade-en']).on('change', function (file) {
livereload.changed(file)
});
});
gulp.task('dev', ['css','js','i18n', 'cssPage', 'jade-ru', 'jade-en', 'watch']);
gulp.task('build', ['css','js','i18n', 'jade-ru', 'jade-en']);