-
Notifications
You must be signed in to change notification settings - Fork 2
/
gulp-config.js
62 lines (62 loc) · 1.38 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
module.exports = {
task: {
lintHtml: 'lint-html',
lintJs: 'lint-js',
fixJs: 'fix-js',
buildHtml: 'build-html',
buildJs: 'build-js',
buildStyles: 'build-styles',
buildStylesCustom: 'build-styles-custom',
buildStylesVendors: 'build-styles-vendors',
buildImages: 'build-images',
cleanBuild: 'clean-build',
browserSync: 'browser-sync',
watch: 'watch',
build: 'build',
},
folder: {
tasks: 'tasks',
// dev: 'develop',
build: 'public',
},
file: {
mainHtml: 'index.html',
mainJs: 'app.js',
buildJs: 'jquery.main.js',
vendorJs: 'vendor.js',
mainStylesSrc: 'styles.scss',
mainStyles: 'styles.css',
vendorStylesSrc: 'vendor.scss',
vendorStyles: 'vendor.css',
},
buildHtml: {
templates: 'html/templates',
},
buildStyles: {
// Sorting type css media queries: 'desktop-first' || 'mobile-first'
sortType: 'desktop-first',
},
buildJs: {
externalLibs: {
jquery: 'jQuery',
},
},
error: {
sound: true,
title: '< SYSTEM ERROR >',
icon: './system_files/icons/error_icon.png',
wait: true,
},
getFilesForStylesCustom() {
return {
files: [],
isGcmq: false,
};
},
isProduction() {
return process.argv[process.argv.length - 1] === this.task.build;
},
isFixJs() {
return process.argv[process.argv.length - 1] === this.task.fixJs;
}
};