You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
1.1 KiB

var gulp = require('gulp');
var copy = require('gulp-copy');
var del = require('del');
gulp.task('default', ['img', 'css', 'js']);
gulp.task('clean:img', function () {
return del(['public/img']);
});
gulp.task('img', ['clean:img'], function () {
return gulp.src('resources/img/**/*')
.pipe(gulp.dest('public/img'));
});
gulp.task('clean:css', function () {
return del(['public/css']);
});
gulp.task('css', ['clean:css'], function () {
gulp.src(['resources/css/**/*.css'])
.pipe(gulp.dest('public/css'));
gulp
.src([
'node_modules/bootstrap/dist/css/bootstrap.min.css',
'node_modules/x-editable/dist/bootstrap3-editable/css/bootstrap-editable.css',
'node_modules/bootstrap-table/dist/bootstrap-table.min.css',
'node_modules/bootstrap-datepicker/dist/css/bootstrap-datepicker3.css'
])
.pipe(gulp.dest('public/css'));
});
gulp.task('clean:js', function () {
return del(['public/assets/js']);
});
gulp.task('js', ['clean:js'], function () {
gulp.src(['resources/js/**/*.js'])
.pipe(gulp.dest('public/js'));
});