Well, clj-new will use Leiningen as a library if you ask it to create you a new
project from a Leiningen template:
clj -A:new figwheel my.fig.project
It depends on [leiningen-core “2.7.1”] to render figwheel/lein-template (a lot
of Leiningen templates seem to reach into the innards of Leiningen for various
things). That doesn’t get you the lein shell script, however (which you can’t
get as a dependency), but you can do a lot of things just with leiningen-core.
For another example of using Leiningen itself as a library, see
http://seancorfield.github.io/blog/2017/11/17/boot-localrepo/ where I show how
to start a Boot REPL with (the whole of) Leiningen as a dependency and a
Leiningen plugin, and then run lein commands from the REPL (still no shell
script!).
If you ask clj-new to create a project from a Boot template, it will can do
that out-of-the-box (since it is basically a fork of boot/new without any of
the Boot dependencies):
clj -A:new simple-yada-template simple.yada
(that will cause boot/new 0.5.2 to be downloaded, but only as a transitive
dependency of simple-yada-template/boot-template).
Sean Corfield -- (970) FOR-SEAN -- (904) 302-SEAN
An Architect's View -- http://corfield.org/
"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood
________________________________
From: [email protected] <[email protected]> on behalf of Didier
<[email protected]>
Sent: Wednesday, April 18, 2018 10:33:55 AM
To: Clojure
Subject: [ANN] clj-new -- creating new Clojure projects using the clj CLI
Hum, cool.
First time I realize that clj could become the npm of Clojure.
Couldn't you pull leiningen down from it in a similar fashion? And have a lein
alias?
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
---
You received this message because you are subscribed to the Google Groups
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
---
You received this message because you are subscribed to the Google Groups
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.