forked from winks-vtt/yze-coriolis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgulpfile.js
30 lines (24 loc) · 812 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
const gulp = require("gulp");
const less = require("gulp-less");
/* ----------------------------------------- */
/* Compile Less
/* ----------------------------------------- */
const YZECORIOLIS_LESS = ["less/**/*.less", "less/*.less"];
function compileLESS() {
return gulp
.src(["less/yzecoriolis.less", "less/yzecoriolismce.less"])
.pipe(less())
.pipe(gulp.dest("./css"));
}
const css = gulp.series(compileLESS);
/* ----------------------------------------- */
/* Watch Updates
/* ----------------------------------------- */
function watchUpdates() {
gulp.watch(YZECORIOLIS_LESS, css);
}
/* ----------------------------------------- */
/* Export Tasks
/* ----------------------------------------- */
exports.default = gulp.series(gulp.parallel(css), watchUpdates);
exports.css = css;