       (cond
         source
         (bapi/build source options cenv)
-        ;; TODO need compile paths
+        ;; TODO need :compile-paths config param
         (not-empty watch-dirs)
         (bapi/build (apply bapi/inputs watch-dirs) options cenv)))))
 

(defn config-clean [cfg]
  (update cfg :options dissoc :watch))

#_(defn config-repl-connection [cfg]
  (if-not (or (::repl? cfg) (::figwheel-mode? cfg))


          (when-not (= mode :build-once)
            (cond
              (= mode :repl)
              ;; this forwards command line args
              (repl repl-env repl-env-options (get-repl-options cfg))
              (or (= mode :serve) fw-mode?)
              ;; we need to get the server host:port args
              (serve repl-env
                     (update-server-host-port repl-env-options)
                     (get-repl-options cfg)
                     (when fw-mode? "(figwheel.core/start-from-repl)")))))))))

