-
Notifications
You must be signed in to change notification settings - Fork 1
/
gulpfile.js
45 lines (40 loc) · 1.41 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
var gulp = require('gulp'),
uglify = require('gulp-uglify'),
rename = require('gulp-rename'),
concat = require('gulp-concat'),
concatCSS = require('gulp-concat-css'),
uglifyCSS = require('gulp-minify-css');
// Copy JS
gulp.task('copyJS', function() {
return gulp.src([
'./bower_components/jquery/dist/jquery.js',
'./bower_components/bootstrap/dist/js/bootstrap.js',
'./bower_components/react/react.js',
'./bower_components/react/JSXTransformer.js'
])
.pipe(gulp.dest('./public/js/libs/'));
});
// Copy CSS
gulp.task('copyCSS', function() {
return gulp.src([
'./bower_components/bootstrap/dist/css/bootstrap.css',
'./bower_components/bootstrap/dist/css/bootstrap.css.map',
'./bower_components/font-awesome/css/font-awesome.css'
])
.pipe(gulp.dest('./public/css/'));
});
// Copy Fonts
gulp.task('copyFonts', function() {
return gulp.src([
'./bower_components/font-awesome/fonts/fontawesome-webfont.eot',
'./bower_components/font-awesome/fonts/fontawesome-webfont.svg',
'./bower_components/font-awesome/fonts/fontawesome-webfont.ttf',
'./bower_components/font-awesome/fonts/fontawesome-webfont.woff',
'./bower_components/font-awesome/fonts/FontAwesome.otf'
])
.pipe(gulp.dest('./public/fonts/'));
});
// Bowercopy
gulp.task('bowercopy', ['copyJS', 'copyCSS', 'copyFonts']);
// Default Task
gulp.task('default', ['bowercopy']);