diff --git a/Gulpfile.js b/Gulpfile.js index e03ab7e..ad10148 100644 --- a/Gulpfile.js +++ b/Gulpfile.js @@ -108,7 +108,7 @@ gulp.task('sculpin-deploy', ['sculpin-prod'], function() { // Spress Development gulp.task('spress-watch', function() { - var watcher = gulp.watch([defaults.spress_home + 'src/content/*', defaults.spress_home + 'src/**/*.html*', defaults.spress_home + 'src/**/*.js'], ['spress-build']); + var watcher = gulp.watch([defaults.spress_home + 'src/content/*', defaults.spress_home + 'src/**/*.html*', defaults.spress_home + 'src/**/*.js', defaults.spress_watch_extras], ['spress-build']); watcher.on('change', function(event) { console.log('File ' + event.path + ' was ' + event.type + ', updating spress...'); }); diff --git a/config/butler.config.sh b/config/butler.config.sh index 98f7f7e..2747712 100755 --- a/config/butler.config.sh +++ b/config/butler.config.sh @@ -31,6 +31,8 @@ if [ ! -e ../../conf/butler.defaults.js ]; then echo "overrides.output_dev = '../../build';" >> ../../conf/butler.defaults.js echo "overrides.html_files = ['../../build/*.html', '../../build/**/*.html'];" >> ../../conf/butler.defaults.js echo "overrides.output_prod = '../../build/**/*';" >> ../../conf/butler.defaults.js + echo "// Add any extra watch paths here. This can be useful for ignoring files, like '!**/_*.js' " >> ../../conf/butler.defaults.js + echo "overrides.spress_watch_extras = '';" >> ../../conf/butler.defaults.js fi; echo "" >> ../../conf/butler.defaults.js