humorless / dotfiles

My dotfiles/ vim plugin setup scripts/ Clojure dev environment vagrant file
2 stars 1 forks source link

[figwheel example] Using Conjure/figwheel with Eleven's codebase #20

Open humorless opened 8 months ago

humorless commented 8 months ago
  1. Make sure that in onze.cljs.edn
:optimizations :none
  1. Invoke the clj in a terminal with the command like

    clj -M:figwheel-cider

    with alias defined as

    :figwheel-cider
    {:extra-deps {cider/cider-nrepl {:mvn/version "0.25.6"}
                cider/piggieback {:mvn/version "0.5.3"}}
    :main-opts ["-m" "nrepl.cmdline" "--middleware"
               "[cider.nrepl/cider-middleware,cider.piggieback/wrap-cljs-repl]"
               "--interactive"]}
  2. In the terminal, give commands like

    (start)  ;; invoke the backend application
    (fw)     ;; invoke the `figwheel.main.api/start`
  3. In the Editor

    :ConjurePiggieback (figwheel.main.api/repl-env "onze")
  4. To quit

:ConjureEval :cljs/quit