gulpfile.jsvar gulp = require('gulp')
var jade = require('gulp-jade')
var browserSync = require('browser-sync').create()
gulp.task('jade', function(){
gulp.src('app/shit*/*.jade', {base: 'app'})
.pipe(jade())
.pipe(gulp.dest('build'))
})
gulp.task('watch', function() {
gulp.watch('app/shit*/*.jade', ['jade'])
})
gulp.task('browser-sync', function() {
browserSync.init({
server: {
baseDir: "build"
}
});
gulp.watch("build/**/*.html", browserSync.reload);
gulp.watch("build/**/*.css", browserSync.reload);
});
gulp.task('default', ['watch', 'browser-sync'])