devcards-template
devcards-template copied to clipboard
Start autobuild dev by default
Any issue changing the template so that it starts autobuilding both the dev and devcards builds by default? Every time I start a new project I forget that I have to change the config, particularly when switching back and forth experimenting between this template and the figwheel-template.
@smahood can you share your config here? I'm not able to get dev autobuild with this template-- only the devcard one works.
My production build is also broken-- apparently it can't find the entry point although it is marked with ^:export
and such.
It's really a pity that all of these various tools for Clojure require so much cargo culting of random snippets and such (CIDER, figwheel, lein-figwheel, devcards, nrepl, doo, etc) [and they each have independent templates always leaving you wondering if you are mixing them together properly-- I bet no two Clojure devs have identical setups].
And I agree having both index.html
and cards.html
working simultaneously with autobuild/refresh on each as well is the ideal setup here.
I just found my issue wrt no reloading:
I was missing this :on-jsload "my-app.core/mount-root"
from my :figwheel options for the :dev config (which came originally from the re-frame template and was lost in my transition to devcards/pure reagent).