-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgulpfile.js
More file actions
51 lines (37 loc) · 1.28 KB
/
gulpfile.js
File metadata and controls
51 lines (37 loc) · 1.28 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
const { series, src, dest } = require('gulp');
const del = require('del');
async function cleanVendorFiles(cb){
await del(['./assets/vendor']);
cb();
}
async function copyVendorFiles(cb){
src([
'./node_modules/bootstrap/dist/**/*',
'!./node_modules/bootstrap/dist/css/bootstrap-grid*',
'!./node_modules/bootstrap/dist/css/bootstrap-reboot*'
])
.pipe(dest('./assets/vendor/bootstrap'))
// Font Awesome
src([
'./node_modules/@fortawesome/**/css/all*',
'./node_modules/@fortawesome/**/webfonts/*'
])
.pipe(dest('./assets/vendor/fontawesome'))
// jQuery
src([
'./node_modules/jquery/dist/*',
'!./node_modules/jquery/dist/core.js'
])
.pipe(dest('./assets/vendor/jquery'))
// CleanBlog
src([
'./node_modules/startbootstrap-clean-blog/**/css/*',
'./node_modules/startbootstrap-clean-blog/**/js/*',
'!./node_modules/startbootstrap-clean-blog/**/js/contact*',
'!./node_modules/startbootstrap-clean-blog/**/js/jqBootstrap*',
'!./node_modules/startbootstrap-clean-blog/vendor/**',
])
.pipe(dest('./assets/vendor/clean-blog'))
cb();
}
exports.default = series(cleanVendorFiles, copyVendorFiles);