This repository was archived by the owner on Jun 7, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgulp.config.js
More file actions
87 lines (83 loc) · 2.13 KB
/
Copy pathgulp.config.js
File metadata and controls
87 lines (83 loc) · 2.13 KB
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
module.exports = {
fileIncludeActive: true,
showNotifications: true,
paths: {
// Copy given paths to dist folder with same path
COPY_SRC: ['src/copyme/**/*'],
// Scripts paths
SCRIPTS_SRC: ['src/assets/js/**/*.js'],
IMAGES_SRC: ['src/assets/img/**/*.*'],
SPRITES_SRC: ['src/assets/sprite/**/*.*'],
SCSS_SRC: ['src/assets/sass/**/*.scss'],
CSS_SRC: [
'src/assets/css/test2.css',
'src/assets/css/test1.css'
// 'src/assets/css/**/*.css'
],
// Html paths
HTMLS_SRC: ['src/*.html'], // Main html files' sources (Without partials like header.html etc)
HTMLS_ALL_SRC: ['src/**/*.html'], // Gives all html files' paths to gulp for watch
// Dist paths
DIST_PATH: 'dist/',
SCRIPTS_DIST: 'dist/assets/js',
SCSS_DIST: 'dist/assets/css',
CSS_DIST: 'dist/assets/css',
IMAGES_DIST: 'dist/assets/img',
SPRITES_DIST: 'dist/assets/sprite',
HTMLS_DIST: 'dist/',
VERSION_DIST: 'dist/',
VERSION_FILE_NAME: 'version.txt'
},
bundles: {
a: {
babel: true,
lint: true,
files: ['src/js/assets/a/a2.js', 'src/assets/js/a/**/*.js']
},
b: {
babel: false,
lint: false,
files: 'src/assets/js/b/**/*.js'
}
},
sprites: {
retina: {
files: ['src/assets/sprite/retina/*.png'],
retinaSrcFilter: ['src/assets/sprite/retina/*@2x.png'],
imgName: 'sprite-retina.png',
retinaImgName: 'sprite-retina@2x.png',
cssName: 'sprite-retina.css',
cssPrefix: '.retina-icon-'
},
notRetina: {
files: ['src/assets/sprite/not-retina/*.png'],
imgName: 'sprite-not-retina.png',
cssName: 'sprite-not-retina.css'
// cssPrefix: '.icon-'
}
},
watch: {
serve: true,
uglifyScripts: false,
minifyCss: true,
optimizeImages: false,
refreshPageAfter: {
fileInclude: true,
style: true,
script: true,
image: true
}
},
export: {
serve: false,
uglifyScripts: true,
minifyCss: true,
optimizeImages: true,
refreshPageAfter: {
fileInclude: false,
style: false,
script: false,
image: false
}
}
};