-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
gulpfile.js
38 lines (32 loc) · 1.15 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
var
gulp = require('gulp'),
minifyCSS = require('gulp-minify-css'),
$ = require('gulp-load-plugins')(),
distPath = './public/dist/';
var cssSrc = [
'./public/css/bootstrap.min.css',
'./public/css/freelancer.css',
'./public/src/vendor/font-awesome/css/font-awesome.min.css'
];
gulp.task('stylesheets', function() {
$.run('cp public/src/vendor/font-awesome/fonts/* ./public/fonts/ -R');
return gulp.src(cssSrc).pipe($.concat('project.css')).pipe(minifyCSS({
removeEmpty: true,
keepSpecialComments: 0
})).pipe(gulp.dest(distPath));
});
var jsSrc = [
'./public/src/vendor/jquery/dist/jquery.min.js',
'./public/src/vendor/bootstrap/dist/js/bootstrap.min.js',
'./public/src/vendor/jquery.easing/js/jquery.easing.min.js',
//'./public/src/vendor/classie/classie.js',
//'./public/js/cbpAnimatedHeader.js',
'./public/js/jqBootstrapValidation.js',
'./public/js/contact_me.js',
'./public/js/freelancer.js'
];
gulp.task('js', function() {
return gulp.src(jsSrc).pipe($.concat('min.js')).pipe($.uglify())
.pipe(gulp.dest(distPath));
});
gulp.task('default', ['stylesheets', 'js']);