-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGulpfile.js
78 lines (73 loc) · 1.92 KB
/
Gulpfile.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
process.env.DISABLE_NOTIFIER = true
const gulp = require('gulp')
const toolkit = require('gulp-wp-toolkit')
toolkit.extendConfig(
{
src: {
php: ['**/*.php', '!vendor/**'],
images: './assets/img/**/*',
scss: './assets/scss/**/*.scss',
css: ['**/*.css', '!node_modules/**'],
js: ['./assets/js/**/*.js', '!node_modules/**'],
json: ['**/*.json', '!node_modules/**'],
i18n: './assets/lang/'
},
js: {
'main': [
'./assets/js/hide-show.js',
'./assets/js/smooth-scroll.js',
'./assets/js/sticky-header.js',
'./assets/js/filters.js'
],
'editor': [
'./assets/js/editor.js'
]
},
css: {
basefontsize: 10,
remmediaquery: false,
cssnano: {
discardComments: {
removeAll: true
},
zindex: false
},
scss: {
'business-pro-main': {
vars: require('./assets/scss/themes/business-pro/colors.json'),
src: './assets/scss/themes/business-pro/main.scss',
dest: './assets/css/business-pro/',
outputStyle: 'compressed',
},
'business-pro-editor': {
vars: require('./assets/scss/themes/business-pro/colors.json'),
src: './assets/scss/themes/business-pro/editor.scss',
dest: './assets/css/business-pro/',
outputStyle: 'compressed'
},
}
},
dest: {
i18npo: './assets/lang/',
i18nmo: './assets/lang/',
images: './assets/img/',
js: './assets/js/min/'
},
server: {
notify: false,
proxy: 'https://demo.test',
host: 'demo.test',
open: 'external',
port: '8000',
files: [
'assets/css/*'
],
https: {
'key': '/Users/seothemes/.config/valet/Certificates/demo.test.key',
'cert': '/Users/seothemes/.config/valet/Certificates/demo.test.crt'
}
}
}
)
toolkit.extendTasks(gulp, {
})