Statiq.Web
Statiq.Web copied to clipboard
CopyFiles (and other 'watcahble' module) should also watch giving folder
CopyFiles module most-likely should also watch its giving folder, if --watch was specified.
The 'issue' comes with the target folder being outside of the source Wyam folder, such as following:
Pipelines.Add("site-resources-css",
CopyFiles(@"..\content\*.*").To(path => path.Replace(@"\content", @"\Views-Output\content"))
);
We use "..\content" to get one level up, and so we are 'outside' of the Wyam source folder. Changes in that folder don't trigger Wyam's regeneration process,
Seems that 'watchability' concept might also be applied to a module level? Guess there are some other modules that might be interested in watching the source folders too.
I think this goes together with #41 and, more specifically, the discussion at https://github.com/Wyamio/Wyam/issues/161#issuecomment-166366413.
There's a typo in the issue description - watcahble should be watchable