regexper-static/gulpfile.js

24 lines
541 B
JavaScript
Raw Normal View History

var gulp = require('gulp'),
2014-11-23 17:24:03 +00:00
wrap = require('gulp-wrap'),
connect = require('gulp-connect'),
watch = require('gulp-watch');
gulp.task('default', function() {
console.log('Default task');
});
2014-11-23 17:24:03 +00:00
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'))
});