-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build-config.js
52 lines (50 loc) · 995 Bytes
/
build-config.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
const
paths = {
src: './src',
dest: './public'
};
let tasks = {
handlebars: {
src: `${paths.src}/Hbs/pages/*.hbs`,
data: {},
options: {
batch: [
`${paths.src}/Hbs/modules`,
`${paths.src}/Hbs/partials`
]
},
rename: {
extname: '.html'
}
},
scss: {
src: `${paths.src}/Scss/*.scss`,
base: `${paths.src}/Scss`,
dest: `${paths.dest}/Css`
},
image: {
src: `${paths.src}/Images/**/*`,
dest: `${paths.dest}/Images`
},
video: {
src: `${paths.src}/Videos/**/*`,
dest: `${paths.dest}/Videos` // .mp4, .avi, .mov in .gitignore
},
font: {
src: `${paths.src}/Font/*.*`,
dest: `${paths.dest}/Font`
},
babel: {
srcs: [
`${paths.src}/Hbs/modules/**/*.es6`,
`${paths.src}/JavaScript/Controller/*.es6`,
`${paths.src}/JavaScript/*.es6`
],
concat: 'formValidation.min.js',
dest: `${paths.dest}/JavaScript`
},
};
module.exports = {
paths,
tasks
};