                           line-seq
                           parse-js-ns
                           (assoc :file res)))]
-    (let [goog (->> (classpath-jarfiles)
-                    (filter #(.endsWith (.getName %) "goog.jar"))
-                    first
-                    filenames-in-jar
-                    (filter #(.endsWith % ".js")))
-          all-nodes (map graph-node (conj goog "core.js"))]
+    (let [all-nodes (map graph-node (concat (all-goog-js) (all-cljs-js)))]
       (build-index all-nodes))))
 
 (def dependency-index (memoize dependency-index*))

  (apply str (interpose "\n" (map #(add-dep-string opts %) sources))))

(comment
  (path-relative-to (io/file "out/goog/base.js") {:url (io/resource "core.js")})
  (add-dep-string {} {:url (io/resource "core.js") :requires ["goog.string"] :provides ["cljs.core"]})
  (deps-file {} [{:url (io/resource "core.js") :requires ["goog.string"] :provides ["cljs.core"]}])  
  )

(defn output-one-file [{:keys [output-to]} js]

           com.google.javascript.jscomp.JSError
           com.google.javascript.jscomp.CommandLineRunner))

;; The prefix under which compiled ClojureScript files may be found on
;; the classpath.
(def cljs-classpath-root "cljs/")

(def name-chars (map char (concat (range 48 57) (range 65 90) (range 97 122))))

(defn random-char []
