forked from andrewalexeich/gulp-scss-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgulpfile.babel.js
executable file
·70 lines (63 loc) · 1.86 KB
/
gulpfile.babel.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
"use strict";
import gulp from "gulp";
const requireDir = require("require-dir"),
paths = {
views: {
src: [
"./src/views/**/*.html",
"./src/views/pages/*.html"
],
dist: "./dist/",
watch: [
"./src/blocks/**/*.html",
"./src/views/**/*.html"
]
},
styles: {
src: "./src/styles/*.{scss,sass}",
dist: "./dist/styles/",
watch: [
"./src/blocks/**/*.{scss,sass}",
"./src/styles/**/*.{scss,sass}"
]
},
additionalStyles: {
src: [
"./src/blocks/modules/**/*.scss",
],
dist: "./dist/blocks/",
watch: [
"./src/blocks/modules/**/*.scss",
]
},
scripts: {
src: "./src/js/index.js",
dist: "./dist/js/",
watch: [
"./src/blocks/**/*.js",
"./src/js/**/*.js",
"./src/blocks/**/*.vue",
"./src/js/**/*.vue",
]
},
images: {
src: [
"./src/img/**/*.{jpg,jpeg,png,gif,tiff,svg}",
],
dist: "./dist/img/",
watch: "./src/img/**/*.{jpg,jpeg,png,svg}"
},
fonts: {
src: "./src/fonts/**/*.{woff,woff2}",
dist: "./dist/fonts/",
watch: "./src/fonts/**/*.{woff,woff2}"
},
};
requireDir("./gulp-tasks/");
export {paths};
export const development = gulp.series("clean",
gulp.parallel(["views", "styles", "scripts", "images", "fonts"]),
gulp.parallel("serve"));
export const build = gulp.series("clean",
gulp.parallel(["views", "styles", "additionalStyles", "scripts", "images", "fonts"]));
export default development;