-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.js
36 lines (31 loc) · 853 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
/*
gulpfile.js
Listingslab's Gulp Build Process
*/
"use strict";
const gulp = require('gulp');
var del = require('del');
var colors = require('colors');
var runSequence = require('run-sequence');
gulp.task('create_vendor', function() {
console.log('Copying bootstrap & jquery to /public/vendor/'.green);
gulp.src("node_modules/bootstrap/dist/**")
.pipe(gulp.dest('public/vendor/bootstrap'))
gulp.src("node_modules/jquery/dist/**")
.pipe(gulp.dest('public/vendor/jquery'))
});
gulp.task('del_bootstrap', function () {
return del('public/vendor/bootstrap/**');
});
gulp.task('del_jquery', function () {
return del('public/vendor/jquery/**');
});
gulp.task('default',function (){
console.log('Running Gulp'.cyanBG);
runSequence(
'del_bootstrap',
'del_jquery',
'create_vendor'
);
//gulp.watch('src/html/**', ['html']);
});