gulpjs / undertaker

Task registry that allows composition through series/parallel methods.
MIT License
200 stars 31 forks source link

record task finish times #9

Closed yocontra closed 9 years ago

yocontra commented 9 years ago

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

dinoboff commented 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.

phated commented 9 years ago

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.

phated commented 9 years ago

@contra @dinoboff Thoughts on the lastRun API? Including an integration test - https://github.com/phated/undertaker/blob/master/test/integration.js#L86-L102

dinoboff commented 9 years ago

That's neat.

phated commented 9 years ago

@contra can you take a look at this and see if you like the API?

yocontra commented 9 years ago

looks fine to me :+1:

phated commented 9 years ago

released in 0.4