Closed airportyh closed 10 years ago
Cool! I haven't had the time to review the code yet, but I'm really happy to see this PR.
Made a short demo http://www.screenr.com/mlGH (1:39).
Just an update: Still excited about, and trying to make time for, this PR.
This looks pretty good. I'm gonna make a few comments about code style and some things I want to implement for the next release incorporating this change. You don't have to feel obligated to deal with any of them; I'll do them eventually. :)
I ended up reimplementing this after making a number of refactors, here: https://github.com/jesusabdullah/browserify-cdn/pull/63 . Behavior is a bit different, but the general idea is the same and this PR was a great reference.
Thanks! Sorry this took so long. The README on master should have reasonable docs for the builds API.
Sweet! Let me know when you go live with it.
See the README.md for API info.
One implementation detail to note is that I factored out a SubCache "class" in cache.js, the goal of which is to allow lower level access to the database for saving the build statuses - which now I realize do not really use the cache semantics at all. Whereas before, you'd use
c.<subdb name>(...)
, now you should usec.<subdb name>.check(...)
to perform the normal cache query.This might be a bit rough, so few free to critique.