forked from oursky/oursky-site
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.js
36 lines (33 loc) · 877 Bytes
/
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
var gulp = require('gulp');
var concat = require('gulp-concat');
var uglify = require('gulp-uglify');
var minifyCss = require('gulp-minify-css');
gulp.task('default', ['js', 'css']);
gulp.task('js', function() {
return gulp.src([
'js/vendor/jquery.js',
'js/jquery.reject.min.js',
'js/jquery.validate.min.js',
'js/foundation.min.js',
'js/cycle2.js',
'js/scrollPoint.js',
'js/swiper.jquery.js',
'js/jquery.scrollTo.min.js',
'js/main.js',
'js/enquiry.js',
'js/skrollr.min.js'
]).pipe(concat("index.js"))
.pipe(uglify())
.pipe(gulp.dest("_site/js"));
});
gulp.task('css', function() {
gulp.src([
'css/foundation.css',
'css/swiper.min.css',
'css/style.css',
'css/mobile.css',
'css/reject.css'
]).pipe(concat("bundle.css"))
.pipe(minifyCss({compatibility: 'ie8'}))
.pipe(gulp.dest('_site/css'));
});