From 285b2df06863809c72648132f68f7289842c6fd4 Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Sat, 17 Feb 2018 08:23:10 -0500 Subject: [PATCH] Enable CIDER-Figwheel integration --- .dir-locals.el | 1 + project.clj | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .dir-locals.el diff --git a/.dir-locals.el b/.dir-locals.el new file mode 100644 index 0000000..6a36bf8 --- /dev/null +++ b/.dir-locals.el @@ -0,0 +1 @@ +((nil . ((cider-cljs-lein-repl . "(do (require 'figwheel-sidecar.repl-api) (figwheel-sidecar.repl-api/start-figwheel!) (figwheel-sidecar.repl-api/cljs-repl))")))) diff --git a/project.clj b/project.clj index 1d8eecf..86457eb 100644 --- a/project.clj +++ b/project.clj @@ -49,7 +49,11 @@ :asset-path "js/generated/out-sidebar" :pretty-print true :source-map true}}}} - :plugins [[lein-figwheel "0.5.14"]]}] + :dependencies [[com.cemerick/piggieback "0.2.2"] + [org.clojure/tools.nrepl "0.2.10"] + [figwheel-sidecar "0.5.14"]] + :plugins [[lein-figwheel "0.5.14"]] + :repl-options {:nrepl-middleware [cemerick.piggieback/wrap-cljs-repl]}}] :prod [:cljs-shared {:cljsbuild {:builds