This repository has been archived by the owner on May 7, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
/
gulpfile.js
49 lines (42 loc) · 1.55 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
var gulp = require('gulp');
var del = require('del');
// Cleanup task
gulp.task('clean', function() {
// You can use multiple globbing patterns as you would with `gulp.src`
return del(['src/docs/InVisionLinks.html']);
});
// Copy libraries from /node_modules to their respective locations
gulp.task('copyJS', function() {
gulp.src(['node_modules/bootstrap-sass/assets/javascripts/*.min.js', 'node_modules/jquery/dist/jquery.min.js', 'node_modules/jquery/dist/jquery.min.map', 'node_modules/patternfly/dist/js/*.min.js'])
.pipe(gulp.dest('assets/js/vendor/'))
});
gulp.task('copySASS', function() {
gulp.src(['node_modules/patternfly/dist/sass/**'])
.pipe(gulp.dest('_sass/patternfly/'))
gulp.src(['node_modules/bootstrap-sass/assets/stylesheets/bootstrap/**'])
.pipe(gulp.dest('_sass/patternfly/bootstrap/'))
gulp.src(['node_modules/font-awesome/scss/**'])
.pipe(gulp.dest('_sass/patternfly'))
});
gulp.task('copyFonts', function() {
gulp.src(['node_modules/bootstrap-sass/assets/fonts/**'])
.pipe(gulp.dest('assets/fonts/'))
gulp.src(['node_modules/patternfly/dist/fonts/**'])
.pipe(gulp.dest('assets/fonts/'))
gulp.src(['node_modules/font-awesome/fonts/**'])
.pipe(gulp.dest('assets/fonts/'))
});
gulp.task('cleanVendors', function() {
return del([
'_sass/vendor',
'js/vendor',
'fonts/**'
]);
});
gulp.task('cleanModules', function() {
return del([
'node_modules'
]);
});
// Run everything
gulp.task('default', ['copyJS', 'copySASS', 'copyFonts']);