boot

:boot-clj: https://boot-clj.github.io/ — build tooling for Clojure. Dev chat in #boot-dev
fabrao 2018-06-12T01:34:19.000190Z

So, I´ll start try using boot, can I use lein templates? How do I use something like reagent-template in boot?

seancorfield 2018-06-12T02:05:42.000020Z

@fabrao boot-new will use lein-templates (if no boot-template exists with that name) but the generated project will look however the author of the template wrote it (i.e., project.clj or build.boot per their choice).

seancorfield 2018-06-12T02:07:10.000070Z

See https://github.com/boot-clj/boot-new @fabrao

fabrao 2018-06-12T02:27:35.000103Z

so, after that, do I have to convert project.clj to build.boot? Because I tried it for reagent but it generated lein project.clj.

seancorfield 2018-06-12T03:18:36.000154Z

@fabrao I don't know if there is a Boot-based template for Reagent apps.

seancorfield 2018-06-12T03:18:57.000218Z

As I said, the type of project you get will depend on the template you use -- and the author's choice of build tool.

seancorfield 2018-06-12T03:25:47.000185Z

Mostly it's fairly straightforward to convert project.clj to build.boot -- but if it's ClojureScript-based, you'll need to get advice from other folks here as I know next to nothing about cljs...

seancorfield 2018-06-12T03:41:49.000233Z

I just ran a "new" with the reagent template and there's a lot of stuff in that project.clj so I'm not sure what a Boot version would look like @fabrao -- and I must admit I'm a bit surprised there isn't a Boot version of it.

fabrao 2018-06-12T03:46:15.000065Z

@seancorfield that is because I didn´t migrate to boot yet, it is too complicate for me until now try converting it to boot

fabrao 2018-06-12T19:59:36.000600Z

@seancorfield Now I understand the benefit of using boot. Everything is dynamic. Adding dependency and evaluate set-env! again, it will load it. I can integrate with my code and use it in deftask as normal clojure is very useful. Is that boot startup faster than lein?

seancorfield 2018-06-12T20:59:46.000438Z

Well, Boot only starts a single JVM whereas Leiningen starts two (one for itself and a second, independent JVM for your application).

seancorfield 2018-06-12T21:00:47.000245Z

But you're more likely to add runtime dependencies and extra code to your build.boot file once you start using it heavily and that will slow it down a bit 🙂

fabrao 2018-06-12T22:29:11.000255Z

Well, until now, I did same thing as lein project and the startup time is faster than lein