                      [(-compile (io/resource "cljs/nodejscli.cljs") all-opts)]))
         js-sources (if (coll? compiled)
                      (apply add-dependencies all-opts compiled)
-                     (add-dependencies all-opts compiled))]
+                     (add-dependencies all-opts compiled))
+        js-sources (cons (javascript-file nil (io/resource "goog/base.js") ["goog"] nil)
+                         (dependency-order js-sources))]
     (if (:optimizations all-opts)
       (->> js-sources
            (apply optimize all-opts)

            (recur (into (rest required-files) new-req)
                   (into visited new-req)
                   (conj js-deps js)))
          (dependency-order js-deps))))))

(comment
  ;; only get cljs deps


(defn compile-dir
  "Recursively compile all cljs files under the given source
  directory. Return a list of JavaScriptFiles."
  [^File src-dir opts]
  (let [out-dir (output-directory opts)]
    (map compiled-file
         (comp/compile-root src-dir out-dir))))

(defn path-from-jarfile
  "Given the URL of a file within a jar, return the path of the file
