Created
January 19, 2016 02:23
-
-
Save jaju/e66d11e2129ddd13a687 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; 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