    [clojure.set :refer [difference union]]
    [clojure.string :as string]))
 
+;; exporting functionality inorder to make figwheel-sidecar.system
+;; the main require for scripting figwheel
+
 (def fetch-config config/fetch-config)
 
 (defn css-watcher [opts]

  ([{:keys [system]} start-build-id]
   (build-switching-cljs-repl* system start-build-id)))

(defn cljs-repl 
  ([figwheel-system] (cljs-repl figwheel-system nil))
  ([{:keys [system]} start-build-id]
   (if (frepl/in-nrepl-env?)
     (figwheel-cljs-repl* system start-build-id) 
     (build-switching-cljs-repl* system start-build-id))))

;; figwheel starting and stopping helpers


   {:figwheel-server :figwheel-system}))

(def nrep-server-component nrepl-comp/nrepl-server-component)

(declare build-config->key)

