24 lines
541 B
JavaScript
24 lines
541 B
JavaScript
var gulp = require('gulp'),
|
|
wrap = require('gulp-wrap'),
|
|
connect = require('gulp-connect'),
|
|
watch = require('gulp-watch');
|
|
|
|
gulp.task('default', function() {
|
|
console.log('Default task');
|
|
});
|
|
|
|
gulp.task('server', function() {
|
|
watch('./build/**/*', { name: 'Server' })
|
|
.pipe(connect.reload());
|
|
return connect.server({
|
|
root: './build',
|
|
livereload: true
|
|
});
|
|
});
|
|
|
|
gulp.task('markup', function() {
|
|
return gulp.src('./src/**/*.html')
|
|
.pipe(wrap({ src: './template.html' }))
|
|
.pipe(gulp.dest('./build'))
|
|
});
|