Skip to content

Instantly share code, notes, and snippets.

@Deraen
Last active June 3, 2016 15:07
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 Deraen/8c71ac076e6713f7350d2988a60a22ae to your computer and use it in GitHub Desktop.
Save Deraen/8c71ac076e6713f7350d2988a60a22ae to your computer and use it in GitHub Desktop.
Thinking about Cider boot-cljs-repl env
;; 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