-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgulpfile.js
68 lines (60 loc) · 1.83 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
const gulp = require('gulp')
const download = require('gulp-download2')
gulp.task('animate', () => {
return gulp
.src('node_modules/animate.css/animate.min.css')
.pipe(gulp.dest('app/static/dist/animate'))
})
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('app/static/dist/bootstrap'))
})
gulp.task('clipboard', () => {
return gulp
.src('node_modules/clipboard/dist/clipboard.min.js')
.pipe(gulp.dest('app/static/dist/clipboard'))
})
gulp.task('fontawesome', () => {
return gulp
.src(
[
'node_modules/@fortawesome/fontawesome-free/css/all.min.css',
// 'node_modules/@fortawesome/fontawesome-free/js/all.min.js',
'node_modules/@fortawesome/fontawesome-free/webfonts/**/*',
],
{ base: 'node_modules/@fortawesome/fontawesome-free' }
)
.pipe(gulp.dest('app/static/dist/fontawesome'))
})
gulp.task('jquery', () => {
return gulp
.src('node_modules/jquery/dist/jquery.min.js')
.pipe(gulp.dest('app/static/dist/jquery'))
})
gulp.task('js-cookie', () => {
return gulp
.src('node_modules/js-cookie/dist/js.cookie.min.js')
.pipe(gulp.dest('app/static/dist/js-cookie'))
})
gulp.task('uppy', () => {
return download([
'https://releases.transloadit.com/uppy/v3.27.0/uppy.min.mjs',
'https://releases.transloadit.com/uppy/v3.27.0/uppy.min.css',
]).pipe(gulp.dest('app/static/dist/uppy'))
})
gulp.task(
'default',
gulp.parallel(
'animate',
'bootstrap',
'clipboard',
'fontawesome',
'jquery',
'js-cookie',
'uppy'
)
)