twitter/bower — pull request #177 by tschaub (2012-12-07 07:31:44+00:00)
Title: Support offline mode for list command

The list command triggers a fetch for git based packages to determine the
package version. Where packages have been installed and the repositories in
the cache are not modified, dependencies can be listed without the fetch by
providing the `--offline` option.

I'm working on a debug/build utility that leverages Bower, and I'd like to be able to allow users to run applications in "debug mode" after installing packages with Bower even if they are offline. I'm currently using the `list` command to get the dependency map. I can derive these dependencies without using `list`, but I'd like to stick to the Bower API.

This is currently lacking tests (though it is straightforward to unplug and confirm that `bower list --offline` works). The tests on master are currently failing for me due to timeouts (I'm guessing). Once I get these tests passing, I'll see about adding test coverage for this.