-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgulp-config.js
47 lines (47 loc) · 1.17 KB
/
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
const env = require('./env.js')
module.exports = {
src: "serve/source/",
templatesToCompile: "serve/*.pug",
templatesToWatch: [
"serve/source/templates/**/*.{pug,md,html,php}",
"serve/*.pug"
],
stylesToCompile: "serve/*.{sass,scss}",
stylesToWatch: [
"serve/source/styles/**/*.{sass,scss}",
"serve/*.{sass,scss}"
],
stylesFolder: "serve/",
stylesAssetsFolder: "vendor/", // relative
scriptsToCompile: "serve/*.es6",
scriptsToWatch: [
"serve/source/scripts/**/*.es6",
"serve/*.es6"
],
imagesToOptimize: "serve/images/", // just folder
serve: "serve/",
package: "*.{json,js}",
tasksDir: "tasks/",
imageExtensions: "svg,jpeg,jpg,png,gif",
fontExtensions: "svg,ttf,woff,otf,eot",
browserSync: {
port: env.browsersync.port,
server: "serve/",
open: false,
reloadOnRestart: true
},
upload: {
ftp: {
enable: true,
description: "FTP (docs: https://github.com/morris/vinyl-ftp)"
},
githubPages: {
enable: false,
description: "Github Pages (http://pages.github.com, docs: https://github.com/shinnn/gulp-gh-pages)"
},
surge: {
enable: false,
description: "Surge (http://surge.sh, docs: https://github.com/surge-sh/gulp-surge)"
}
}
}