From 3c8ac6a743c4603247e0774c4a74f12ca10af0fa Mon Sep 17 00:00:00 2001 From: JesseBrault0709 <62299747+JesseBrault0709@users.noreply.github.com> Date: Tue, 10 Jan 2023 12:33:42 -0600 Subject: [PATCH] Watching all main dirs. --- .../jessebrault/ssg/StaticSiteGeneratorCli.groovy | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/cli/src/main/groovy/com/jessebrault/ssg/StaticSiteGeneratorCli.groovy b/cli/src/main/groovy/com/jessebrault/ssg/StaticSiteGeneratorCli.groovy index fb61d24..191620f 100644 --- a/cli/src/main/groovy/com/jessebrault/ssg/StaticSiteGeneratorCli.groovy +++ b/cli/src/main/groovy/com/jessebrault/ssg/StaticSiteGeneratorCli.groovy @@ -183,6 +183,21 @@ class StaticSiteGeneratorCli implements Callable { watchableProviders << it } } + it.config.templatesProviders.each { + if (it instanceof WithWatchableDir) { + watchableProviders << it + } + } + it.config.partsProviders.each { + if (it instanceof WithWatchableDir) { + watchableProviders << it + } + } + it.config.specialPagesProviders.each { + if (it instanceof WithWatchableDir) { + watchableProviders << it + } + } } // register them and their child directories using the Closure above watchableProviders.each {