forked from planetoftheweb/bootstrap4
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgulpfile.js
More file actions
executable file
·34 lines (27 loc) · 798 Bytes
/
Copy pathgulpfile.js
File metadata and controls
executable file
·34 lines (27 loc) · 798 Bytes
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
var gulp = require('gulp'),
webserver = require('gulp-webserver');
var builds = 'builds/bootstrap';
gulp.task('js', function() {
return gulp.src(builds + '/js/myscript.js')
});
gulp.task('html', function() {
gulp.src(builds + '/**/*.html');
});
gulp.task('css', function() {
gulp.src(builds + '/css/*.css');
});
gulp.task('watch', function() {
gulp.watch(builds + '/js/**/*', ['js']);
gulp.watch(builds + '/css/**/*.css', ['css']);
gulp.watch([builds + '/**/*.html'], ['html']);
});
gulp.task('webserver', function() {
gulp.src(builds + '/')
.pipe(webserver({
port: 3000,
livereload: true,
livereloadport: 8283,
open: true
}));
});
gulp.task('default', ['watch', 'html', 'js', 'css', 'webserver']);