-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.js
33 lines (29 loc) · 852 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
32
33
const gulp = require("gulp"),
plugins = require("gulp-load-plugins")();
function getTask(task) {
return require("./gulp/tasks/" + task)(gulp, plugins);
}
gulp.task("sync", getTask("browserSync"));
gulp.task("clean", getTask("clean"));
gulp.task("styles", getTask("styles"));
gulp.task("scripts", getTask("scripts"));
gulp.task("templates", getTask("templates"));
gulp.task("images", getTask("images"));
gulp.task("fonts", getTask("fonts"));
gulp.task("deployCode", getTask("deployCode"));
gulp.task("deployImages", getTask("deployImages"));
gulp.task("deployFonts", getTask("deployFonts"));
gulp.task(
"default",
gulp.series(
gulp.parallel(["styles", "scripts", "templates", "images", "fonts"]),
"sync"
)
);
gulp.task(
"build",
gulp.series(
"clean",
gulp.parallel(["deployCode", "deployImages", "deployFonts"])
)
);