-
Notifications
You must be signed in to change notification settings - Fork 6
/
gulpfile.js
100 lines (89 loc) · 3.53 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
const gulp = require('gulp');
const concat = require('gulp-concat');
// ***********************
// Move JS Files to src/js
// ***********************
gulp.task('js', function () {
return gulp.src([
'node_modules/jquery/dist/jquery.min.js',
'node_modules/bootstrap/dist/js/bootstrap.min.js',
'node_modules/popper.js/dist/umd/popper.min.js',
'node_modules/owl.carousel2/dist/owl.carousel.min.js',
'node_modules/magnific-popup/dist/jquery.magnific-popup.min.js',
'node_modules/wowjs/dist/wow.min.js',
'node_modules/imagesloaded/imagesloaded.pkgd.min.js',
'node_modules/isotope-layout/dist/isotope.pkgd.min.js',
'node_modules/jarallax/dist/jarallax.min.js',
'node_modules/jarallax/dist/jarallax-video.min.js',
'node_modules/jquery-waypoints/waypoints.min.js',
'node_modules/counterup/jquery.counterup.min.js',
'node_modules/jquery.easing/jquery.easing.min.js',
'node_modules/jquery-countdown/dist/jquery.countdown.min.js'
])
.pipe(gulp.dest("src/js"))
});
// *****************************
// Combine All js files into one
// *****************************
gulp.task('scripts', function () {
return gulp.src([
'./src/js/default-assets/avoid.console.error.js',
'./src/js/default-assets/classy-nav.js',
'node_modules/owl.carousel2/dist/owl.carousel.min.js',
'node_modules/wowjs/dist/wow.min.js',
'node_modules/magnific-popup/dist/jquery.magnific-popup.min.js',
'node_modules/jquery-waypoints/waypoints.min.js',
'node_modules/counterup/jquery.counterup.min.js',
'node_modules/imagesloaded/imagesloaded.pkgd.min.js',
'node_modules/isotope-layout/dist/isotope.pkgd.min.js',
'node_modules/jarallax/dist/jarallax.min.js',
'node_modules/jarallax/dist/jarallax-video.min.js',
'./src/js/default-assets/jquery.scrollup.min.js',
'node_modules/jquery-countdown/dist/jquery.countdown.min.js'
])
.pipe(concat('confer.bundle.js'))
.pipe(gulp.dest('./src/js/'))
});
// ************************************
// Move Font Awesome Fonts to src/fonts
// ************************************
gulp.task('fafonts', function () {
return gulp.src([
'node_modules/font-awesome/fonts/*'
])
.pipe(gulp.dest('src/fonts'))
})
// *******************************
// Move Elegent Icons to src/fonts
// *******************************
gulp.task('elefonts', function () {
return gulp.src([
'node_modules/elegant-icons/fonts/*'
])
.pipe(gulp.dest('src/css/fonts'))
})
// *******************************
// Move ZMDI Icons to src/fonts
// *******************************
gulp.task('zmdifonts', function () {
return gulp.src([
'node_modules/material-design-iconic-font/dist/fonts/*'
])
.pipe(gulp.dest('src/fonts'))
})
// *******************
// Move CSS to src/css
// *******************
gulp.task('css', function () {
return gulp.src([
'node_modules/bootstrap/dist/css/bootstrap.min.css',
'node_modules/font-awesome/css/font-awesome.min.css',
'node_modules/owl.carousel2/dist/assets/owl.carousel.min.css',
'node_modules/elegant-icons/style.css',
'node_modules/wowjs/css/libs/animate.css',
'node_modules/magnific-popup/dist/magnific-popup.css',
'node_modules/material-design-iconic-font/dist/css/material-design-iconic-font.min.css'
])
.pipe(gulp.dest('src/css'))
})
gulp.task('default', ['js', 'scripts', 'css', 'fafonts', 'elefonts', 'zmdifonts']);