forked from liferay/sennajs.com
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.js
139 lines (118 loc) · 2.91 KB
/
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
'use strict';
module.exports = {
/**
* The defaultConfig provides the base configuration for all flavors and
* each flavor can override any value.
*/
defaultConfig: {
/**
* Autoprefixer parses CSS files and adds vendor prefixes to CSS rules.
*/
autoprefixer: [
'android >= 4.4',
'bb >= 10',
'chrome >= 34',
'ff >= 30',
'ie >= 8',
'ie_mob >= 10',
'ios >= 7',
'opera >= 23',
'safari >= 7'
],
/**
* The default locale of the app, or null if it shouldn't be translated at all.
*/
defaultLocale: null,
/**
* Build pattern matching for HTML files.
*/
globHtml: 'src/**/*.html',
/**
* Build pattern matching for icon files.
*/
globIcon: 'src/public/images/icons/**/*.svg',
/**
* Build pattern matching for image files.
*/
globImage: 'src/public/**/*.{gif,jpeg,jpg,png,svg}',
/**
* Build pattern matching for markdown files.
*/
globMarkdown: 'src/**/*.md',
/**
* Build pattern matching for JavaScript files.
*/
globScript: 'src/public/**/*.js',
/**
* Build pattern matching for SASS files.
*/
globScss: 'src/public/styles/**/*.scss',
/**
* Build pattern matching for CSS files.
*/
globStyle: 'src/public/**/*.css',
/**
* Build pattern matching for Soy template files.
*/
globTemplate: 'src/**/*.soy',
/**
* The path of the file that will contain all the messages extracted from
* the app by the `lang` gulp task.
*/
extractedMessagesFilepath: 'src/translations/extractedMessages.xlf',
/**
* Reduces payload size of HTML document.
*/
optimizeHtml: false,
/**
* Parses build blocks in HTML files to replace references.
*/
optimizeHtmlResource: false,
/**
* Minifies images.
*/
optimizeImage: false,
/**
* Minifies JavaScript files.
*/
optimizeScript: false,
/**
* Minifies CSS files.
*/
optimizeStyle: false,
/**
* Outputs markdown files as HTML.
*/
outputMarkdownAsHtml: true,
/**
* Outputs rendered template files.
*/
outputTemplateAsHtml: true,
/**
* Outputs template files as js scripts.
*/
outputTemplateAsJavascript: false,
/**
* The path of the files that contain the translations to be used by the app.
*/
translationsFilepath: null
},
/***
* A product flavor defines a customized version of the application build by
* the project. A single project can have different flavors which change the
* generated application.
*
* Example:
* gulp build --flavor production
* gulp watch --flavor production
*/
productFlavors: {
production: {
optimizeHtml: true,
optimizeHtmlResource: true,
optimizeImage: true,
optimizeScript: true,
optimizeStyle: true
}
}
};