-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gulp.js
66 lines (61 loc) · 1.19 KB
/
.gulp.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
"use strict"
const config = {
tasks: {
templates: {
flags: [
{
id: "-l",
description: `localize templates in a specific language (omit language for all languages)`,
placeholder: require("./lib/utils/get-langs")(),
},
],
},
},
}
config.project = {
name: "CREEATION.de",
options: {
logging: {
debug: true,
verbose: true,
},
},
plugins: [
{
name: "browser-sync",
config: {
// watch: true,
server: "dist",
port: 6077,
localOnly: true,
online: false,
open: false,
notify: true,
},
},
{
name: "gulp-html-i18n",
config: {
langDir: "src/lang",
createLangDirs: true,
defaultLang: "en",
fallback: "en",
},
},
],
}
/**
* gulp-cli configuration
* @see https://github.com/gulpjs/gulp-cli#configuration
*/
config.gulp_cli = {
description: config.project.name,
}
// merge gulp-cli configuration into config root
for (const key in config.gulp_cli) {
if (config.gulp_cli.hasOwnProperty(key)) {
config[key] = config.gulp_cli[key]
}
}
delete config.gulp_cli
module.exports = config