Skip to content

Commit

Permalink
Add spress_watch_extras variable
Browse files Browse the repository at this point in the history
  • Loading branch information
froboy committed Feb 5, 2018
1 parent c156fe1 commit 37669fb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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...');
});
Expand Down
2 changes: 2 additions & 0 deletions config/butler.config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 37669fb

Please sign in to comment.