-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.config.js
66 lines (63 loc) · 1.48 KB
/
gulpfile.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
const app = {
name: ''
}
const paths = {
src: 'src/',
dist: 'dist/',
static: 'static/'
}
const files = {
js: {
src: [
`${paths.src}js/${app.name}.js`
],
dest: `${paths.dist}js`,
debug: [
`${paths.src}js/**/*.js`,
`${paths.src}app/**/*.js`
],
production: `${paths.dist}js/${app.name}.min.js`
},
sass: {
src: `${paths.src}sass/${app.name}.sass`,
dest: `${paths.dist}css`,
debug: `${paths.src}sass/**/*.sass`,
production: `${paths.dist}css/${app.name}.min.css`
},
templates: {
src: [
`${paths.src}pug/${app.name}.pug`,
`${paths.src}app/**/*.pug`
],
dest: `${paths.dist}templates`,
debug: [
`${paths.src}pug/**/*.pug`,
`${paths.src}app/**/*.pug`
],
production: [
`${paths.dist}index.html`,
`${paths.dist}/templates/**/**`
]
},
static: {
src: [
`${paths.static}**/**`,
`!${paths.static}js/**`,
`!${paths.static}css/**`
],
dest: `${paths.dist}${paths.static}`,
js: {
src: `${paths.static}js/**/*.js`,
dest: `${paths.dist}${paths.static}js`
},
css: {
src: `${paths.static}css/**/*.css`,
dest: `${paths.dist}${paths.static}css`
}
}
}
module.exports = {
app,
paths,
files
}