Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jaju/e66d11e2129ddd13a687 to your computer and use it in GitHub Desktop.
Save jaju/e66d11e2129ddd13a687 to your computer and use it in GitHub Desktop.
;; So that we don't repeat figwheel config options in two places.
(use 'figwheel-sidecar.repl-api)
;; See - http://stackoverflow.com/questions/16270805/how-to-get-the-version-of-the-current-clojure-project-in-the-repl
;; This script should be invoked from the base project directory.
(def project (->> "project.clj"
slurp
read-string
(drop 2)
(cons :version)
(apply hash-map)))
(def figwheel-options (:figwheel project))
(def all-builds (-> project :cljsbuild :builds))
(def build-ids (map :id all-builds))
(start-figwheel!
{:figwheel-options figwheel-options
:build-ids build-ids
:all-builds all-builds
})
(cljs-repl)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment