-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathgulpfile.mjs
More file actions
41 lines (34 loc) · 913 Bytes
/
gulpfile.mjs
File metadata and controls
41 lines (34 loc) · 913 Bytes
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
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 = `
/*
* Liquid Web ${config.version}
* Contemporary style and functionality - an accordion that does more.
* https://github.com/koirodev/liquid-web
*
* Copyright ${new Date().getFullYear()} 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 = [
'js:process',
'js:process:min',
'js:process:modules',
'copy',
'copy:types',
];
gulp.task('default', gulp.series('clean', gulp.parallel(...defaultTasks)));
gulp.task('dev', gulp.series('clean', gulp.parallel(...defaultTasks), 'watch'));