Fork me on GitHub
#dirac
<
2017-01-13
>
superstructor00:01:37

Thanks for your incredible work on Dirac @darwin ! We’re using 1.0.0 as of today and working fine. Its second only to ClojureScript itself in terms of its importance to our development tooling.

darwin00:01:02

I’m glad you find it useful, thanks @superstructor

chrisetheridge07:01:05

is it possible to setup Dirac using only your ~/.lein/profiles.clj ?

chrisetheridge07:01:13

or do you have to add some options to a project.clj ?

darwin12:01:11

@biscuitpants I think some of the configuration can be moved to profiles.clj, but not all and it depends on your project structure if you look at https://github.com/binaryage/dirac/blob/master/docs/installation.md, there are basically 3 steps: 1) add dirac dependency to project.clj 2) setup your code to call dirac.runtime/install! 3) setup :repl-options for your repl to start Dirac Agent as well I believe 1) and 3) can be put into profiles, 2) is tricky, because you have to add it as a preload, which would mean that your profiles file would have to assume particular cljs-build structure in your project.clj, or you have to add it as as code, and then your project code would assume the dependency was included, which might be not obvious form step 1) being in profiles

chrisetheridge12:01:44

ah okay, so its not as straight forward as just adding the dep and the preloadas

chrisetheridge12:01:56

well, that is alright 🙂 its a pretty large project, so i understand that

darwin12:01:00

I can imagine writing more involved code for 2) which would via a macro detect if dirac dependency is present, if yes it would emit dirac.runtime/install! call