Closed yocontra closed 9 years ago
For what I understand, a task can be added to the registry via Undertaker.prototype.set
, via DefaultRegistry.prototype.set
directly or via any custom registry set
method directly. So tasks can't be decorated to record the last task run timestamp when they are added to the registry.
How are task retrieved to be run? maybe they could be decorated there.
I think we can implement this with the extension points in bach. I don't know if this even needs to belong in the registry. I haven't done much digging into this, though.
@contra @dinoboff Thoughts on the lastRun
API? Including an integration test - https://github.com/phated/undertaker/blob/master/test/integration.js#L86-L102
That's neat.
@contra can you take a look at this and see if you like the API?
looks fine to me :+1:
released in 0.4
an object with the times that tasks last finished would be really useful for incremental builds.
this might belong in the default registry, putting it here because im not sure