mirror of
https://github.com/frappe/air-datepicker.git
synced 2026-01-14 11:01:22 +08:00
42 lines
1.0 KiB
JavaScript
42 lines
1.0 KiB
JavaScript
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)
|
|
});
|
|
});
|
|
|
|
|
|
|
|
|