                (fn [f] (.lastModified f)))
                (map :source-file files)))))
 
-(comment
-
-  (def options {
-                :output-to "resources/public/js/compiled/example.js"
-                :output-dir "resources/public/js/compiled/out"
-                  :optimizations :none
-                  :warnings true
-                })
-
-  (def fig-opts {
-                :output-to "resources/public/js/compiled/example.js"
-                :output-dir "resources/public/js/compiled/out"
-
-                 :resource-paths ["/Users/brucehauman/workspace/lein-figwheel/example/dev-resources"
-                                  "/Users/brucehauman/workspace/lein-figwheel/example/resources"
-                                  "/Users/brucehauman/workspace/lein-figwheel/example/other_resources"],
-                 ;; these aren't needed anymore
-                 :js-dirs ["resources/public/js/compiled/out" "resources/public/js/compiled/example.js"],
-                 :name "figwheel-example",
-                 :server-port 3449,
-
-                 :open-file-command "emacsclient",
-                 :root "/Users/brucehauman/workspace/lein-figwheel/example",
-                 :version "0.1.7-SNAPSHOT",
-                 :css-dirs ["resources/public/css"],
-                 :http-server-root "public"})
-  
-  (get-dependency-mtimes ["src"] options)
-
-
-  (autobuild ["src"] options fig-opts)
-  
-  )
-
 (def server-kill-switch (atom false))
 
 (defn autobuild [src-dirs build-options figwheel-options]

        warning-handlers (conj cljs.analyzer/*cljs-warning-handlers* warning-handler)
        compiler-env    (cljs.env/default-compiler-env build-options)]
    (reset! server-kill-switch (:http-server figwheel-state'))
    (p/pprint src-dirs)
    (p/pprint build-options)
    (p/pprint figwheel-options)

    (loop [dependency-mtimes {}]
      (let [new-mtimes (get-dependency-mtimes src-dirs build-options)]

              (fig/compile-error-occured figwheel-state' e))))
        (fig/check-for-css-changes figwheel-state')
        (Thread/sleep 100)
        (recur new-mtimes)))))
