forked from sharmakeshav1030/EventManagementWebsite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.js
31 lines (26 loc) · 763 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
30
31
const { src, dest, parallel, watch } = require('gulp');
const sass = require('gulp-sass');
const rename = require('gulp-rename');
const uglify = require('gulp-uglify');
const concat = require('gulp-concat');
const plumber = require('gulp-plumber');
sass.compiler = require('node-sass');
function css() {
return src('src/*.scss')
.pipe(plumber())
.pipe(sass())
.pipe(dest('dist'))
}
function js() {
return src('src/jquery.simple-calendar.js')
.pipe(plumber())
.pipe(dest('dist'))
.pipe(rename('jquery.simple-calendar.min.js'))
.pipe(uglify())
.pipe(dest('dist'));
}
watch('src/*.scss', css);
watch('src/*.js', js);
exports.js = js;
exports.css = css;
exports.default = parallel(css, js);