juxt

conan 2019-04-01T09:55:50.004400Z

Anybody know which command is used for building clojurescript in edge?

dominicm 2019-04-01T10:15:52.004700Z

clojure -A:build/once:build

conan 2019-04-01T10:24:12.005Z

ta

conan 2019-04-01T13:56:50.005600Z

similarly, do you know the command for running a dev build of clojurescript? figwheel is fine, or a one-off

dominicm 2019-04-01T13:59:51.005900Z

When you do (go) at the REPL, it will be started.

conan 2019-04-01T14:01:16.006400Z

hmm. do you know where it compiles to? i don't seem to have a compiled file in my project

conan 2019-04-01T14:03:39.006800Z

actually never mind, i can just read what (go)does and figure out what i need

dominicm 2019-04-01T14:06:22.007100Z

it compiles to target/dev, but that shouldn't really matter.

dominicm 2019-04-01T14:06:30.007300Z

it's all configured in config.edn.

dominicm 2019-04-01T14:06:37.007500Z

@conan why do you need to know?

conan 2019-04-01T14:07:04.007600Z

I don't have anything showing up in my target/dev, so my app can't serve the js in development

conan 2019-04-01T14:13:24.008100Z

Here's a much better question: how do I spin up the repl from Cursive?

conan 2019-04-01T14:14:05.008800Z

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

dominicm 2019-04-01T14:21:09.009400Z

no, you just use the aliases dev,dev/build,build and then type (dev) and then (go) at the repl.

dominicm 2019-04-01T14:21:59.009800Z

after (go) your css/js will be built.

conan 2019-04-01T14:29:59.010200Z

thanks!

conan 2019-04-01T14:33:25.011700Z

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?

jonpither 2019-04-01T14:36:02.012300Z

How does mount give a faster workflow? Curious.

conan 2019-04-01T14:40:21.012800Z

ah, when you save a file it automatically reloads any components it contains (and the dep tree if necessary)

conan 2019-04-01T14:40:35.013400Z

avoids having to run (reset) all the time

dominicm 2019-04-01T14:41:37.014600Z

Integrant is one of the few opinions of edge, so mount is not something I have any ideas on supporting.

conan 2019-04-01T14:41:48.015Z

given how many times i save a file and reload it each day, it's a big difference!

conan 2019-04-01T14:42:06.015600Z

yeah it's not really a question of support, they're just libraries right?

conan 2019-04-01T14:43:06.016700Z

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

conan 2019-04-01T14:43:21.017300Z

should be easy to stick the same thing in a mount component

dominicm 2019-04-01T14:43:35.017500Z

Edge has deep integration with integrant, it provides some of the backbone for making the automatic development work.

dominicm 2019-04-01T14:44:10.018400Z

In vim you can aucmd BufWrite * :Eval (reset), can't cursive do something like that?

conan 2019-04-01T14:44:12.018600Z

ok, so best to keep it all in place, maybe make an integrant component that kicks off mount?

conan 2019-04-01T14:44:24.018800Z

what does this do?

dominicm 2019-04-01T14:44:35.019Z

On write, it will do (reset)

conan 2019-04-01T14:45:36.019200Z

i'll investigate. ideally it will work without developer intervention, i don't want IDE customisation to be necessary for the project to work

dominicm 2019-04-01T14:47:50.019600Z

that's your workflow, not a general one. This is a place I would advocate for developer customization.

conan 2019-04-01T17:11:34.019800Z

i like developer customisation for things that are personal, but not for things that are shared

conan 2019-04-01T17:12:15.020Z

with reloading edited namespaces, i can't think of a time when you wouldn't want that, so it feels like a shared concern

conan 2019-04-01T17:13:09.020200Z

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

dominicm 2019-04-01T18:41:53.020400Z

Reload on change is very editor specific.