Skip to content

Commit

Permalink
Fix boot cljs repl
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Manila committed Sep 17, 2018
1 parent 5683479 commit 2e49955
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
3 changes: 1 addition & 2 deletions resources/leiningen/new/luminus/core/build.boot
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,8 @@
(comp
(start-server)
(watch)
(cljs-repl)
(reload :client-opts {:debug true})
(speak)
(cljs-repl)
(cljs))))

(deftask run-cljs-tests
Expand Down
12 changes: 8 additions & 4 deletions src/leiningen/new/cljs.clj
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
(def cljs-dev-dependencies
[['doo doo-version]
['binaryage/devtools "0.9.10"]
['figwheel-sidecar figwheel-version]
['cider/piggieback "0.3.9"]])

(defn get-output-dir [features]
Expand Down Expand Up @@ -105,6 +104,9 @@
:css-dirs ["resources/public/css"]
:nrepl-middleware `[cider/wrap-cljs-repl cider.piggieback/wrap-cljs-repl]} )

(def cljs-lein-dev-dependencies
[['figwheel-sidecar figwheel-version]])

(defn cljs-lein-features [[assets options :as state]]
[assets
(-> options
Expand All @@ -116,20 +118,22 @@
:figwheel (indent root-indent (figwheel options))
:cljs-uberjar-prep ":prep-tasks [\"compile\" [\"cljsbuild\" \"once\" \"min\"]]")
(append-options :source-paths [(:client-path options) (:cljc-path options)])
(append-options :resource-paths resource-paths))])
(append-options :resource-paths resource-paths)
(append-options :dev-dependencies cljs-lein-dev-dependencies))])

;; Options for boot

(defn boot-cljs-assets [{:keys [client-path]}]
[[(str client-path "/app.cljs.edn") "cljs/src/cljs/app.cljs.edn"]])

(def cljs-boot-plugins '[[adzerk/boot-cljs "2.1.0-SNAPSHOT" :scope "test"]
(def cljs-boot-plugins '[[adzerk/boot-cljs "2.1.4" :scope "test"]
[crisptrutski/boot-cljs-test "0.3.2-SNAPSHOT" :scope "test"]
[adzerk/boot-cljs-repl "0.3.3" :scope "test"]])

(def cljs-boot-dev-plugins
'[[crisptrutski/boot-cljs-test "0.3.2-SNAPSHOT" :scope "test"]
'[[crisptrutski/boot-cljs-test "0.3.4" :scope "test"]
[powerlaces/boot-figreload "0.1.1-SNAPSHOT" :scope "test"]
[com.cemerick/piggieback "0.2.1" :scope "test"]
[org.clojure/clojurescript cljs-version :scope "test"]
[weasel "0.7.0" :scope "test"]
[org.clojure/tools.nrepl "0.2.12" :scope "test"]])
Expand Down

0 comments on commit 2e49955

Please sign in to comment.