-
Notifications
You must be signed in to change notification settings - Fork 3
/
Gulpfile.js
31 lines (26 loc) · 932 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
var gulp = require('gulp'),
sass = require('gulp-sass'),
concat = require('gulp-concat');
gulp.task('default', ['js', 'css', 'fonts']);
gulp.task('css', function () {
gulp.src(['node_modules/bootstrap-sass/assets/stylesheets/_bootstrap.scss', 'res/scss/style.scss'])
.pipe(concat('style.scss'))
.pipe(sass())
.pipe(gulp.dest('res/public/css/'));
});
gulp.task('js', function () {
gulp.src([
'res/js/script.js',
'node_modules/jquery/dist/jquery.min.js',
'node_modules/bootstrap-sass/assets/javascripts/bootstrap.min.js'
])
.pipe(gulp.dest('res/public/js/'));
});
gulp.task('fonts', function () {
gulp.src('node_modules/bootstrap-sass/assets/fonts/bootstrap/*')
.pipe(gulp.dest('res/public/fonts/'));
});
gulp.task('watch', function () {
gulp.watch('res/scss/*.scss', ['css']);
gulp.watch('res/js/*.js', ['js']);
});