-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
plannedThis will be added at some point. PR welcomeThis will be added at some point. PR welcome
Description
Currently, jumpgen has a store
object for preserving arbitrary data between runs. When combined with the changes
array, you can manually determine which data in your store
has been invalidated, allowing you to know which parts of your generator need to be rerun.
With a new API, we could make this less of a hassle.
- Add
task
function that takes aname
string and a callback. - When a task starts and ends, a
"task:start"
or"task:end"
event is emitted with the task name. - Any paths watched from within a task's callback will only invalidate that task when changed.
- When your generator reruns, some tasks may not rerun and instead will return a memoized result, if nothing they watched has changed.
- Optionally, you can specify that a task's result should be stored in a filesystem cache, rather than kept in memory. (This feature won't exist in the initial implementation)
Metadata
Metadata
Assignees
Labels
plannedThis will be added at some point. PR welcomeThis will be added at some point. PR welcome