You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Wheelie could offer a public API to generate a watcher for a Task. Suppose we have a task that should be triggered everytime a file changes in a folder, it's something that only the Task itself could know.
I propose to have a config attribute that if is found during the Wheelie build, a new watcher is activated. For instance, a SASS task could:
At this point the Wheelie#add() method should add the task to the watchers list in the _registry, and a real watcher task must be generated using this list.
If we achieve this architecture, we can also set the task watch as a reasonable default for Wheelie.
The text was updated successfully, but these errors were encountered:
Wheelie could offer a public API to generate a watcher for a
Task
. Suppose we have a task that should be triggered everytime a file changes in a folder, it's something that only theTask
itself could know.I propose to have a
config
attribute that if is found during the Wheelie build, a new watcher is activated. For instance, a SASS task could:At this point the
Wheelie#add()
method should add the task to the watchers list in the_registry
, and a real watcher task must be generated using this list.If we achieve this architecture, we can also set the task
watch
as a reasonable default for Wheelie.The text was updated successfully, but these errors were encountered: