Last active
June 3, 2016 15:07
-
-
Save Deraen/8c71ac076e6713f7350d2988a60a22ae to your computer and use it in GitHub Desktop.
Thinking about Cider boot-cljs-repl env
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
;; Called from nREPL started by cider-jack-in | |
(deftask cider-dev [] | |
(comp | |
(watch) | |
(cljs-repl-env) ;; Creates Piggieback env for use in existing nREPL | |
(reload) | |
(less) | |
(cljs))) | |
;; Called from terminal | |
(deftask dev [] | |
(comp | |
(watch) | |
(cljs-repl) ;; starts a new REPL | |
(reload) | |
(less) | |
(cljs))) | |
;; While separate repl-env allows Cider users to use Cljs-repl inside | |
;; Repl started from Repl, it causes the environment specific configuration | |
;; to leak into build.boot. Though this is similar to existing cljs-repl task, | |
;; which forces user to start a new nREPL. | |
;; It would be good if tasks encourage building build.boot tasks that are indenpendet | |
;; from environement. | |
;; 1) Add cljs-repl-env anyway, as it is not necessarily more env specific than current task | |
;; 2) Somehow automatically decide if cljs-repl should start a new repl? | |
;; 3) Something else? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment