forked from syndesisio/syndesis-ux
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.js
49 lines (42 loc) · 1.54 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/**'])
.pipe(gulp.dest('js/vendor/'))
});
gulp.task('copySASS', function() {
gulp.src(['node_modules/patternfly/dist/sass/**'])
.pipe(gulp.dest('_sass/vendor/'))
gulp.src(['node_modules/bootstrap-sass/assets/stylesheets/bootstrap/**'])
.pipe(gulp.dest('_sass/vendor/bootstrap/'))
gulp.src(['node_modules/font-awesome/scss/**'])
.pipe(gulp.dest('_sass/vendor/'))
});
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',
'assets/fonts/**'
]);
});
gulp.task('cleanModules', function() {
return del([
'node_modules'
]);
});
// Run everything
gulp.task('default', ['copyJS', 'copySASS', 'copyFonts']);