-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgulpfile.js
31 lines (26 loc) · 928 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
import gulp from 'gulp'
import { path } from "./gulp/config/path.js"
import { plugins } from "./gulp/config/plugins.js"
global.app = {
gulp: gulp,
path: path,
plugins: plugins
}
import { copy } from "./gulp/tasks/copy.js"
import { reset } from "./gulp/tasks/reset.js"
import { html } from "./gulp/tasks/html.js"
import { server } from "./gulp/tasks/server.js"
import { scss } from "./gulp/tasks/scss.js"
import { js } from "./gulp/tasks/js.js"
import { images } from "./gulp/tasks/images.js"
import { fontscopy } from "./gulp/tasks/fonts.js"
function watcher() {
gulp.watch(path.watch.files, copy)
gulp.watch(path.watch.html, html)
gulp.watch(path.watch.scss, scss)
gulp.watch(path.watch.js, js)
gulp.watch(path.watch.images, images)
}
const mainTask = gulp.parallel(copy, html, scss, js, images, fontscopy)
const dev = gulp.series(reset, mainTask, gulp.parallel(watcher, server))
gulp.task('default', dev)