-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgulpfile.mjs
50 lines (43 loc) · 947 Bytes
/
gulpfile.mjs
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
import gulp from "gulp";
import config from "./scripts/config.mjs";
import appPath from "./scripts/paths/app.mjs";
import tasksPath from "./scripts/paths/tasks.mjs";
const header = `
/*
* Kordion ${config.version}
* Contemporary style and functionality - an accordion that does more.
* https://github.com/koirodev/kordion
*
* Copyright 2024 Vitaly Koiro
*
* Released under the MIT License
*
* Released on: ${config.date}
*/
`;
const paths = {
tasks: tasksPath,
app: appPath
}
for (const taskPath of paths.tasks) {
const task = await import(taskPath);
task.default(gulp, config, header);
}
const defaultTasks = [
"sass",
"sass:minified",
"js:process",
"js:process:min",
"js:process:modules",
"js:process:modules:min",
"js:process:vue",
];
gulp.task("default", gulp.series(
"clean",
gulp.parallel(...defaultTasks)
));
gulp.task("dev", gulp.series(
"clean",
gulp.parallel(...defaultTasks),
"watch"
));