var gulp = require('gulp'),
requireDir = require('require-dir'),
livereload = require('gulp-livereload');
var tasks = requireDir('./app/tasks');
gulp.task('sass:watch', function () {
gulp.watch('./app/scss/**/*.scss', ['sass']);
gulp.watch('./app/js/**/*.js', ['compress']);
gulp.watch(['./app/views/**/*.jade'], ['jade']);
});
gulp.task('default', [
'sass',
'compress',
'jade',
'copyJade',
'copyFonts',
'sass:watch'
], function() {
livereload.listen();
});
Typical Gulp setup
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.