This repository was archived by the owner on Mar 27, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathgulpconfig.js
More file actions
115 lines (109 loc) · 2.62 KB
/
gulpconfig.js
File metadata and controls
115 lines (109 loc) · 2.62 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
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
// Project paths
var project = 'lbrycommunity',
src = './src/',
build = './build/',
dist = './dist/' + project + '/',
bower = './bower_components/',
modules = './node_modules/';
// Project settings
module.exports = {
browsersync: {
files: [build + '/**', '!' + build + '/**.map'],
notify: true,
open: true,
port: 3000,
proxy: 'http://lbrycommunity.dev/',
watchOptions: {
debounceDelay: 1200
}
},
images: {
build: {
src: src + '**/*(*.png|*.jpg|*.jpeg|*.gif|*.svg)',
dest: build
},
dist: {
src: [dist + '**/*(*.png|*.jpg|*.jpeg|*.gif|*.svg)', '!' + dist + 'screenshot.png'],
imagemin: {
optimizationLevel: 7,
progressive: true,
interlaced: true
},
dest: dist
}
},
livereload: {
port: 35729
},
scripts: {
bundles: {
scripts: ['scripts']
},
chunks: {
scripts: [
src + 'js/main.js'
]
},
dest: build + 'js/',
lint: {
src: [src + 'js/**/*.js']
},
minify: {
src: build + 'js/**/*.js',
uglify: {},
dest: build + 'js/'
}
},
styles: {
build: {
src: src + 'scss/**/*.scss',
dest: build
},
compiler: 'libsass',
cssnano: {
autoprefixer: {
add: true,
browsers: ['> 3%', 'last 2 versions', 'ie 9', 'ios 6', 'android 4']
}
},
libsass: {
includePaths: [
'./src/scss',
modules + 'normalize.css',
modules,
bower
],
precision: 6,
onError: function (err) {
return console.log(err);
}
}
},
theme: {
lang: {
src: src + 'languages/**/*',
dest: build + 'languages/'
},
php: {
src: src + '**/*.php',
dest: build
}
},
utils: {
clean: [build + '**/.DS_Store'],
wipe: [dist],
dist: {
src: [build + '**/*', '!' + build + '**/*.map'],
dest: dist
}
},
watch: {
src: {
styles: src + 'scss/**/*.scss',
scripts: src + 'js/**/*.js',
images: src + '**/*(*.png|*.jpg|*.jpeg|*.gif|*.svg)',
theme: src + '**/*.php'
},
watcher: 'browsersync'
}
};