-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgulp-config.js
55 lines (50 loc) · 979 Bytes
/
gulp-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
const paths = {
gulpTasks: './gulp-tasks',
src: {
html: './src',
js: './src/js',
sass: './src/assets/sass',
img: './src/assets/img',
locales: './src/locales',
game: './src/assets/game'
},
dist: {
base: './dist',
html: './dist',
js: './dist/js',
css: './dist/assets/css',
img: './dist/assets/img',
locales: './dist/locales',
game: './dist/assets/game'
}
};
const javascriptSettings = {
main: {
src: 'main.js',
dist: 'main.bundle.js'
},
jspm: {
selfExecutingBundle: true,
inject: true,
minify: true
}
};
const htmlSettings = (function settings() {
const dist = `${paths.dist.js.replace(paths.dist.base, '.')}/${javascriptSettings.main.dist}`;
return {
js: {
dist,
src: javascriptSettings.main.src
}
};
}());
const serverSettings = {
root: paths.dist.base,
port: 8080
};
module.exports = {
paths,
javascriptSettings,
htmlSettings,
serverSettings
};