Statiq.Web icon indicating copy to clipboard operation
Statiq.Web copied to clipboard

CopyFiles (and other 'watcahble' module) should also watch giving folder

Open avishnyakov opened this issue 8 years ago • 2 comments

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.

avishnyakov avatar Dec 26 '15 02:12 avishnyakov

I think this goes together with #41 and, more specifically, the discussion at https://github.com/Wyamio/Wyam/issues/161#issuecomment-166366413.

daveaglick avatar Dec 28 '15 15:12 daveaglick

There's a typo in the issue description - watcahble should be watchable

petre-c avatar Mar 01 '19 05:03 petre-c