re-natal/resources/user.clj

29 lines
787 B
Clojure
Raw Normal View History

(ns user
(:use [figwheel-sidecar.repl-api :as ra]))
2015-12-15 18:08:18 +00:00
;; This namespace is loaded automatically by nREPL
;; read project.clj to get build configs
(def profiles (->> "project.clj"
slurp
read-string
(drop-while #(not= % :profiles))
(apply hash-map)
:profiles))
(def cljs-builds (get-in profiles [:dev :cljsbuild :builds]))
(defn figwheel-ios
"Start figwheel for iOS build"
[]
(ra/start-figwheel!
2015-12-15 18:08:18 +00:00
{:build-ids ["ios"]
:all-builds cljs-builds})
(ra/cljs-repl))
(defn figwheel-android
"Start figwheel for Android build"
[]
(ra/start-figwheel!
2015-12-15 18:08:18 +00:00
{:build-ids ["android"]
:all-builds cljs-builds})
(ra/cljs-repl))