-
Notifications
You must be signed in to change notification settings - Fork 3
/
gulpfile.js
71 lines (64 loc) · 2.17 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
const gulp = require('gulp')
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-buttons/js/dataTables.buttons.min.js',
'node_modules/datatables.net-buttons/js/buttons.colVis.min.js',
'node_modules/datatables.net-buttons/js/buttons.html5.min.js',
'node_modules/datatables.net-buttons-bs5/js/buttons.bootstrap5.min.js',
'node_modules/datatables.net-buttons-bs5/css/buttons.bootstrap5.min.css',
])
.pipe(gulp.dest('src/dist/datatables'))
})
gulp.task('fontawesome', () => {
return gulp
.src(
[
'node_modules/@fortawesome/fontawesome-free/css/all.min.css',
'node_modules/@fortawesome/fontawesome-free/webfonts/fa-regular-*',
'node_modules/@fortawesome/fontawesome-free/webfonts/fa-solid-*',
],
{ 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('pdfjs', () => {
return gulp
.src([
'node_modules/pdfjs-dist/build/pdf.min.mjs',
'node_modules/pdfjs-dist/build/pdf.worker.min.mjs',
])
.pipe(gulp.dest('src/dist/pdfjs'))
})
gulp.task(
'default',
gulp.parallel(
'bootstrap',
'clipboard',
'datatables',
'fontawesome',
'jquery',
'pdfjs'
)
)