Fork me on GitHub
#figwheel
<
2018-10-18
>
solussd00:10:26

thanks, but I’m using clojure deps (cli tools)

bhauman00:10:49

then there is a bunch of editor integration stuff as well starting here https://figwheel.org/docs/editor-integration.html

solussd00:10:19

@bhauman I just figured out what I was doing wrong. 🙂

solussd00:10:22

I’m now starting an nrepl in my user.clj w/ the piggieback middleware and calling figwheel.main.api/start w/ “dev” to get my cljs repl running in Cursive. Works great now– I can evaluate clojurescript line by line.

llsouder01:10:18

cider works using the template lein new figwheel testfig -- --reagent and no changes. What is the

;; for CIDER
        ;; :plugins [[cider/cider-nrepl "0.12.0"]]
used for?

dpsutton02:10:40

antiquated and not needed. CIDER used to need to have its dependencies in place in the project. it now injects them. That release was at clojure/west in seattle on AuthorDate: Sat Apr 16 13:39:19 2016 -0700. That sounds like the template might be old 🙂

✔️ 1
Sturm11:10:37

I'm working on a small app using accountant/bidi for routing/browser URLs and I'd like to have the development server always serve up the index.html at any URL. Should I try to configure Figwheel to do this, or am I stepping outside of it's use case?

bhauman11:10:03

@ben735 you will want to have a ring handler handle these specific routes and return the index.html

bhauman11:10:35

you can configure a :ring-handler in your :figwheel configuration

Sturm11:10:05

@bhauman thanks, so maybe I make that handler read the index.html file and serve up the contents?

Sturm11:10:16

great, thanks

bhauman11:10:32

keep in mind that page is for figwheel-main

bhauman11:10:55

but the ring handler example is correct

Sturm11:10:37

figwheel-main as distinct from figwheel-sidecar?

bhauman11:10:40

yes figwheel-main is different

Sturm13:10:39

I'm missing something with adding a :ring-handler to figwheel-sidecar. I've set :ring-handler be-scheduler.server/handler and created the file at ,src/be_scheduler/server.clj but I'm getting a java.lang.ClassNotFoundException: be-scheduler.server.

Sturm13:10:59

ClojureScript files are being found under src, but maybe I need to do something with this .clj?