-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.js
109 lines (97 loc) · 2.96 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
101
102
103
104
105
106
107
108
109
const gulp = require('gulp')
gulp.task('animate', () => {
return gulp
.src(['node_modules/animate.css/animate.min.css'])
.pipe(gulp.dest('src/dist/animate'))
})
gulp.task('aos', () => {
return gulp
.src(['node_modules/aos/dist/aos.css', 'node_modules/aos/dist/aos.js'])
.pipe(gulp.dest('src/dist/aos'))
})
gulp.task('bootstrap', () => {
return gulp
.src([
'node_modules/bootstrap/dist/css/bootstrap.min.css',
'node_modules/bootstrap/dist/js/bootstrap.bundle.min.js',
])
.pipe(gulp.dest('src/dist/bootstrap'))
})
gulp.task('clipboard', () => {
return gulp
.src(['node_modules/clipboard/dist/clipboard.min.js'])
.pipe(gulp.dest('src/dist/clipboard'))
})
gulp.task('datatables', () => {
return gulp
.src([
'node_modules/datatables.net/js/dataTables.min.js',
'node_modules/datatables.net-bs5/js/dataTables.bootstrap5.min.js',
'node_modules/datatables.net-bs5/css/dataTables.bootstrap5.min.css',
'node_modules/datatables.net-responsive/js/dataTables.responsive.min.js',
'node_modules/datatables.net-responsive-dt/js/responsive.dataTables.min.js',
])
.pipe(gulp.dest('src/dist/datatables'))
})
gulp.task('devicon', () => {
return gulp
.src(
[
'node_modules/devicon/devicon.min.css',
'node_modules/devicon/fonts/devicon.ttf',
'node_modules/devicon/fonts/devicon.woff',
],
{ base: 'node_modules/devicon' }
)
.pipe(gulp.dest('src/dist/devicon'))
})
gulp.task('fontawesome', () => {
return gulp
.src(
[
'node_modules/@fortawesome/fontawesome-free/css/all.min.css',
'node_modules/@fortawesome/fontawesome-free/webfonts/**/*',
],
{ base: 'node_modules/@fortawesome/fontawesome-free' }
)
.pipe(gulp.dest('src/dist/fontawesome'))
})
gulp.task('jquery', () => {
return gulp
.src('node_modules/jquery/dist/jquery.min.js')
.pipe(gulp.dest('src/dist/jquery'))
})
gulp.task('swiper', () => {
return gulp
.src([
'node_modules/swiper/swiper-bundle.min.css',
'node_modules/swiper/swiper-bundle.min.js',
])
.pipe(gulp.dest('src/dist/swiper'))
})
gulp.task('tsparticles', () => {
return gulp
.src(['node_modules/tsparticles/tsparticles.bundle.min.js'])
.pipe(gulp.dest('src/dist/tsparticles'))
})
gulp.task('ua-parser-js', () => {
return gulp
.src(['node_modules/ua-parser-js/dist/ua-parser.min.js'])
.pipe(gulp.dest('src/dist/ua-parser-js'))
})
gulp.task(
'default',
gulp.parallel(
'animate',
'aos',
'bootstrap',
'clipboard',
'datatables',
'devicon',
'fontawesome',
'jquery',
'swiper',
'tsparticles',
'ua-parser-js'
)
)