-
Notifications
You must be signed in to change notification settings - Fork 5
/
gulpfile.config.js
81 lines (67 loc) · 1.67 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
var GLOBSTAR = '**/*';
var basePaths = {
src: 'src/',
dest: 'build/'
};
var typeMap = {
// templates
jade: ['*.jade'],
html: ['*.html'],
// styles
css: [GLOBSTAR + '.css'],
less: [GLOBSTAR + '.less'],
// scripts
js: [GLOBSTAR + '.js', '!lib/*.js'],
coffee: [GLOBSTAR + '.coffee'],
jslibs: ['lib/*.js', '!lib/'],
// images
png: [GLOBSTAR + '.png'],
jpg: [GLOBSTAR + '.jpg', GLOBSTAR + '.jpeg'],
gif: [GLOBSTAR + '.gif'],
svg: [GLOBSTAR + '.svg'],
// extras
extras: [GLOBSTAR]
};
module.exports = {
appName: 'abi2html',
SERVER_PORT: 1337,
GLOBSTAR: GLOBSTAR,
basePaths: basePaths,
typePaths: {
templates: {
src: basePaths.src + 'templates/',
dest: basePaths.dest + ''
},
styles: {
src: basePaths.src + 'styles/',
dest: basePaths.dest + 'css/'
},
scripts: {
src: basePaths.src + '/',
dest: basePaths.dest + '/'
},
images: {
src: basePaths.src + 'images/',
dest: basePaths.dest + 'images/'
},
extras: {
src: basePaths.src + 'extras/',
dest: basePaths.dest + ''
},
i18n: {
src: basePaths.src + 'extras/locales',
dest: basePaths.dest + 'locales/'
}
},
typeMap: typeMap,
appFiles: {
templates: typeMap.jade.concat(typeMap.html),
styles: typeMap.css.concat(typeMap.less),
scripts: typeMap.js.concat(typeMap.coffee),
images: typeMap.png.concat(typeMap.gif).concat(typeMap.jpg).concat(typeMap.svg),
extras: typeMap.extras
},
vendorFiles: {
scripts: typeMap.jslibs
},
};