-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.js
45 lines (38 loc) · 1008 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
37
38
39
40
41
42
43
44
45
var gulp = require('gulp');
var webserver = require('gulp-webserver');
var concat = require('gulp-concat');
var bump = require('gulp-bump');
var paths = {
sourcefiles : [
'./src/web-presentation.html',
'./src/web-slide.html',
'./src/web-slide-title.html',
'./src/web-presentation-keyboardcontrols.html']
};
gulp.task('webserver', function() {
gulp.src('demo')
.pipe(webserver({
livereload: true,
open: true
}));
});
gulp.task('dist', function() {
gulp.src(paths.sourcefiles)
.pipe(concat('web-presentation.html'))
.pipe(gulp.dest('./dist/'))
.pipe(gulp.dest('./demo/'))
});
gulp.task('watch', function(){
gulp.watch(paths.sourcefiles, ['dist']);
});
gulp.task('minor', function(){
gulp.src('./bower.json')
.pipe(bump({type:'minor'}))
.pipe(gulp.dest('./'));
});
gulp.task('patch', function(){
gulp.src('./bower.json')
.pipe(bump({type:'patch'}))
.pipe(gulp.dest('./'));
});
gulp.task('default', ['watch', 'webserver']);