forked from criteo/graphite-remote-adapter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.js
51 lines (40 loc) · 1.56 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
var gulp = require('gulp');
var rename = require("gulp-rename");
////////////////////////////
// BOOTSTRAP
////////////////////////////
// Take js from bootstrap and put it in static files
gulp.task('bootstrap_js', function() {
return gulp.src('node_modules/bootstrap/dist/js/bootstrap.min.js')
.pipe(gulp.dest('ui/static/js'));
});
// Take js from bootstrap and put it in static files
gulp.task('jquery', function() {
return gulp.src('node_modules/jquery/dist/jquery.js')
.pipe(gulp.dest('ui/static/js'));
});
// Take bootswatch theme and put it in static files
gulp.task('bootstrap_theme', function() {
return gulp.src('node_modules/bootswatch/dist/lumen/bootstrap.css')
.pipe(rename('./bootstrap-lumen.min.css'))
.pipe(gulp.dest('ui/static/css/'));
});
gulp.task('bootstrap', gulp.series('bootstrap_js', 'jquery', 'bootstrap_theme'), () => {});
////////////////////////////
// FONT AWESOME
////////////////////////////
// Take CSS for fontawesome and put them in static files
gulp.task('fontawesome_css', function() {
return gulp.src('node_modules/font-awesome/css/font-awesome.min.css')
.pipe(gulp.dest('ui/static/css'));
});
// Take fonts from fontawesome and put them in static files
gulp.task('fontawesome_fonts', function() {
return gulp.src("node_modules/font-awesome/fonts/*")
.pipe(gulp.dest('ui/static/fonts'));
});
gulp.task('fontawesome', gulp.series('fontawesome_css','fontawesome_fonts'), () => {});
////////////////////////////
// DEFAULT
////////////////////////////
gulp.task('default', gulp.series('bootstrap', 'fontawesome'), () => {});