@shaun-mahood I kept it almost identical to the default project.clj generated by re-natal
I think I need to replace :figwheel true
with :fogwheel {...}
@misha: Try adding :figwheel {:nrepl-port 7888}
just above :profiles
and see if that works - that's how I have mine configured, and looking at https://github.com/bhauman/lein-figwheel/wiki/Configuration-Options I think it should work (if it doesn't at least we'll find out quickly).
that'd be "server-side" place to add it
Configurations happens in your project.clj file and is separated into
serverside configs (:figwheel {...} on your "root" level)
and per-build, or client side, configs (:cljsbuild {:builds [{:figwheel {...}}]}).
Yep. If I understand correctly it would then apply to any per-build configs.
but Bruce mentioned something about "FW configs merge will not happen if FW is launched from (n?)REPL, something something"
Not sure about that - the global config works for me. You don't really have much of a per-client config anyway, so it may not matter either way.
got a startup idea: project.clj explainer. splits p.clj into tools' cfg maps
Starting clojure.main REPL...
[...] clojure.main script/repl.clj -r
Figwheel: Starting server at <http://localhost:3449>
Choose focus build for CLJS REPL () or quit > ios
Error: ios is not a valid choice
Choose focus build for CLJS REPL () or quit > "ios"
Error: "ios" is not a valid choice
Choose focus build for CLJS REPL () or quit > ":ios"
Error: ":ios" is not a valid choice
Choose focus build for CLJS REPL () or quit > :ios
Error: :ios is not a valid choice
Choose focus build for CLJS REPL () or quit > (start-autobuild "ios")
Error: (start-autobuild "ios") is not a valid choice
Choose focus build for CLJS REPL () or quit > 1
Error: 1 is not a valid choice
send help :dafuq:ok, start-figwheel!
did not see [:cljsbuild :builds] inside :profiles.
"fixed" with
(let [dev-builds (->> "./project.clj" slurp read-string vec (#(subvec % 3)) (apply hash-map) :profiles :dev :cljsbuild :builds)
ids (mapv :id dev-builds)
cfg {:figwheel-options {}
:build-ids ids
:all-builds dev-builds}]
(start-figwheel! cfg)
(cljs-repl "ios"))