Fork me on GitHub
#dirac
<
2016-08-04
>
richiardiandrea00:08:06

yes it works ok and I have the warning as well

richiardiandrea00:08:15

can cut a release happily now

superstructor00:08:47

@richiardiandrea: nice! thanks parrot some more currency šŸ˜‰

richiardiandrea00:08:15

thank you for the patch!

richiardiandrea00:08:35

@superstructor: 0.1.1 should be on Clojars

superstructor00:08:07

@richiardiandrea: thanks will test now. Also did you know you can do this in your build.boot to pass config to devtools ?

(task-options! cljs {:compiler-options {:external-config {:devtools/config {:features-to-install [:formatters :hints :async]}}}}

richiardiandrea00:08:33

now I know šŸ™‚

richiardiandrea00:08:01

and I was trying to pass option through the task but it does not work and I don't know why

richiardiandrea00:08:25

for instance :dirac-opts {:log-level "DEBUG"} does not work

superstructor00:08:35

used to be called :tooling-config but thats deprecated.

richiardiandrea00:08:13

yeah, that above is more of a dirac option, which should work as I am passing it to dirac/boot!

superstructor00:08:04

yeah I donā€™t think dirac supports external-config / tooling-config yet as searching the dirac source does not find those strings (except in project.clj in relation to passing config to devtools)

danielcompton04:08:25

Would be interested in feedback if people think this is a bad idea

danielcompton04:08:51

I canā€™t see too many downsides considering that you canā€™t use dirac if chrome plugin and lein dep arenā€™t in sync anyway

richiardiandrea04:08:22

@superstructor: if you feel very open-sourcy today, a PR to the readme with the way you can configure devtools like the above would be incredibly useful!

superstructor04:08:32

@danielcompton: some people donā€™t use lein dep, we use boot, so what does lein dep being in sync mean please for those of us ignorant of lein ? :thinking_face:

richiardiandrea04:08:05

I think he means if the version is not in sync, it happens in boot as well

richiardiandrea04:08:42

In boot I guess we could write a task that checks the version of the Chrome extension and sets the version of the dep accordingly

richiardiandrea04:08:16

This would actually be perfect for our new powerlaces/boot-cljs-devtools ;)

richiardiandrea04:08:05

I estimate that the task would just parse some json in Chrome (maybe Darwin can help here)

danielcompton04:08:01

Just updated the docs to remove all references to lein

danielcompton04:08:33

There is nothing lein specific about the install instructions

danielcompton04:08:52

AFAIK Boot will also download the latests version when you specify RELEASE

danielcompton04:08:33

@richiardiandrea: I guess you could write a plugin, but seems like a lot of work when you can just get the deps to update automatically

martinklepsch11:08:58

@richiardiandrea: is it possible to use boot-cljs-devtools without dirac?

martinklepsch11:08:18

It seems the namespace requires dirac so removing the dep would break it

darwin11:08:49

@martinklepsch: not familiar with boot-cljs-devtools, but you could work-around it by creating empty dirac namespace in your project (and maybe implementing empty install! function there)

darwin11:08:26

but agree that this should be addressed, most people wonā€™t use dirac

superstructor11:08:34

@darwin: really, why wouldnā€™t most people use dirac ? its awesome.

darwin11:08:44

it is an advanced tool, relatively difficult to setup and keep maintained - most people donā€™t need that power ATM, I think

richiardiandrea14:08:01

@martinklepsch: not at the moment, and I don't think a task for cljs-devtools would be valuable..it is so easy to add it to an existing code base...a task is a bit overkill.

richiardiandrea14:08:54

Dirac on the other had needs to have nrepl server running and some conf, so that is why a task makes sense

richiardiandrea14:08:17

In lambone boot dev launches the normal boot-cljs-repl and boot dev -d launches dirac nrepl (they are mutually exclusive)

darwin16:08:03

@richiardiandrea: what about renaming the task to boot-dirac or something like that?

richiardiandrea16:08:37

@darwin: yeah not a bad idea definitely, but it includes both šŸ™‚

darwin16:08:12

cljs-devtools is pre-requisity for dirac, but not vice versa

darwin16:08:30

so naming it ā€œdiracā€ would make sense even if it includes cljs-devtools

darwin16:08:13

technically dirac does not require cljs-devtools, but I expect everyone using dirac to use cljs-devtools as well

richiardiandrea16:08:39

makes sense yeah

superstructor22:08:32

yeah I think it makes sense to call it boot-dirac and focus on that use case of devtools+dirac together only, devtools alone is easy to add as a dep + :compiler-options :preloads, donā€™t really need a task for devtools without dirac.

martinklepsch22:08:04

@richiardiandrea: šŸ‘ Good stuff, hope you don't mind my unsolicited opinions šŸ™‚

richiardiandrea22:08:54

@martinklepsch: absolutely not! it makes the experience better so that's all good šŸ˜„

martinklepsch22:08:59

I wasn't aware things have become that easy with :preloads, that's amazing! (I thought you still need a separate namespace that you require in dev only and stuff)

richiardiandrea22:08:47

well I think the thing here is that @darwin

richiardiandrea22:08:56

awesomely added it for us

richiardiandrea22:08:05

with cljs-devtools.preload

darwin22:08:03

@martinklepsch: no, you donā€™t need a namespace

darwin22:08:19

@richiardiandrea: please don't make dirac too easy to setup. I'm not able to handle support requests from newbies getting dirac "for free" via some automated task šŸ˜‰

darwin22:08:49

btw. guys, dirac.preload will be a thing in next release (soon-ish), so dirac setup should get easier, but I still see value in those boot tasks, they can be trivial and maybe ease upgrading process in future if I decided to change the setup anyhow

richiardiandrea22:08:58

ah ah it is actually a collective effort so we'll try to slack a bit šŸ˜„

richiardiandrea22:08:38

but I know what you mean, I saw that figwheel is exploding with feedback šŸ˜‰

darwin22:08:24

exactly bhauman is super-nice guy, so it eats a lot of his time to support people, I can imagine

richiardiandrea22:08:01

oh yes he is, a lot of people here are actually

richiardiandrea22:08:25

passionate about their work is probably the right word here

martinklepsch22:08:20

good night folks šŸ‘‹ lovely being here šŸ™‚

richiardiandrea22:08:11

we are missing the unicorn icon