lein-figwheel

spiralganglion 2016-10-17T00:39:17.000076Z

Noob question. I ran lein new figwheel hello-world. It includes a user.clj file that defines a user namespace. This file doesn't seem to be loaded into the default cljs.user namespace when I run figwheel. It is, however, used for the default user namespace when I run lein repl. So.. what should I do if I'd like to add some definitions to the cljs.user namespace that I'm dropped into when figwheel's repl fires up?

spiralganglion 2016-10-17T00:43:30.000078Z

Defining my own cljs.user ns doesn't seem to do the trick. I've also tried messing with project.clj a bunch. At this point, I'm fresh out of ideas.

spiralganglion 2016-10-17T01:55:25.000079Z

Scratch that — figured it out. It seems my custom cljs.user ns just wasn't being required — as opposed to the user.clj file, which was just magically loaded? Slightly confused about that, but it works so that's good enough for now.

grounded_sage 2016-10-17T04:11:07.000081Z

Thanks @danielcompton though I have found it difficult to integrate that into my build. I don't know whether it is because I am unfamiliar with Boot or Figwheel or both.