Anybody know which command is used for building clojurescript in edge?
clojure -A:build/once:build
ta
similarly, do you know the command for running a dev build of clojurescript? figwheel is fine, or a one-off
When you do (go)
at the REPL, it will be started.
hmm. do you know where it compiles to? i don't seem to have a compiled file in my project
actually never mind, i can just read what (go)
does and figure out what i need
it compiles to target/dev, but that shouldn't really matter.
it's all configured in config.edn.
@conan why do you need to know?
I don't have anything showing up in my target/dev
, so my app can't serve the js in development
Here's a much better question: how do I spin up the repl from Cursive?
There seems to be more to it than simple aliases in deps.edn
, so i'm not sure how to get cursive to run all the right stuff
no, you just use the aliases dev,dev/build,build and then type (dev)
and then (go)
at the repl.
after (go)
your css/js will be built.
thanks!
maybe you have a good suggestion here. i'd like to use mount for its faster development workflow and to avoid explicit config, but the only way i can find of getting the cljs to build seems to be to keep integrant in the project. how would you bridge this gap?
How does mount give a faster workflow? Curious.
ah, when you save a file it automatically reloads any components it contains (and the dep tree if necessary)
avoids having to run (reset)
all the time
Integrant is one of the few opinions of edge, so mount is not something I have any ideas on supporting.
given how many times i save a file and reload it each day, it's a big difference!
yeah it's not really a question of support, they're just libraries right?
just wondering how you'd go about kicking off the cljs stuff without integrant. it must wrap something that does it, but i'm just not familiar with what the "something that does it" is
should be easy to stick the same thing in a mount component
Edge has deep integration with integrant, it provides some of the backbone for making the automatic development work.
In vim you can aucmd BufWrite * :Eval (reset)
, can't cursive do something like that?
ok, so best to keep it all in place, maybe make an integrant component that kicks off mount?
what does this do?
On write, it will do (reset)
i'll investigate. ideally it will work without developer intervention, i don't want IDE customisation to be necessary for the project to work
that's your workflow, not a general one. This is a place I would advocate for developer customization.
i like developer customisation for things that are personal, but not for things that are shared
with reloading edited namespaces, i can't think of a time when you wouldn't want that, so it feels like a shared concern
kind of like how the reloaded workflow isn't a general workflow, but it's so useful that realistically everybody's going to want it - so we put it in scm for everyone to use
Reload on change is very editor specific.