-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.js
34 lines (27 loc) · 965 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
34
// Библиотеки
import gulp from "gulp";
import path from "./config/path.js";
import settings from "./config/settings.js";
import plugins from "./config/plugins.js";
//Глобальные переменные
global.app = {
path: path,
gulp: gulp,
settings: settings,
plugins: plugins,
};
// Задачи
import clean from "./tasks/clean.js";
import css from "./tasks/css.js";
import { otfToTtf, ttfToWoff, fontStyle } from "./tasks/fonts.js";
import html from "./tasks/html.js";
import images from "./tasks/images.js";
import js from "./tasks/js.js";
import watchFiles from "./tasks/watch.js";
import browserSync from "./tasks/bs.js";
const fonts = gulp.series(otfToTtf, ttfToWoff, fontStyle);
const build = gulp.series(clean, fonts, gulp.parallel(js, css, html, images));
const dev = gulp.series(build, gulp.parallel(watchFiles, browserSync));
gulp.task("default", dev);
export { dev };
export { build };