(defn js-dependency-index
"Returns the index for all JavaScript dependencies. Lookup by
namespace or file name."
[opts]
; (library-dependencies) will find all of the same libs returned by
; (goog-dependencies), but the latter returns some additional/different
; information (:file instead of :url, :group), so they're folded in last to
; take precedence in the returned index. It is likely that
; (goog-dependencies), special-casing of them, goog/deps.js, etc can be
; removed entirely, but verifying that can be a fight for another day.
(build-index (concat (library-dependencies opts) (goog-dependencies))))