-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgulpfile.js
58 lines (52 loc) · 1.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
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('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('metar-taf-parser', () => {
return gulp
.src(
[
'node_modules/metar-taf-parser/metar-taf-parser.js',
'node_modules/metar-taf-parser/locale/**',
],
{ base: 'node_modules/metar-taf-parser' }
)
.pipe(gulp.dest('src/dist/metar-taf-parser'))
})
gulp.task(
'default',
gulp.parallel(
'bootstrap',
'clipboard',
'fontawesome',
'jquery',
'metar-taf-parser'
)
)