File tree Expand file tree Collapse file tree 1 file changed +31
-1
lines changed
Expand file tree Collapse file tree 1 file changed +31
-1
lines changed Original file line number Diff line number Diff line change @@ -1608,7 +1608,9 @@ environment or from command-line options.
16081608----
16091609
16101610To run your application, use `clojure -M:duct`, or the `duct` alias
1611- defined in the <<Project Setup>> section.
1611+ defined in the <<Project Setup>> section. If your project uses
1612+ Leiningen rather than tools.deps, check out the section on <<Leiningen>>
1613+ integration.
16121614
16131615== Integrations
16141616
@@ -1704,6 +1706,34 @@ kbd:[M-x] `cider-ns-refresh` kbd:[RET]
17041706There's also a key binding for this command:
17051707kbd:[C-c] kbd:[M-n] kbd:[r]
17061708
1709+ === Leiningen
1710+
1711+ It's recommended that you use Duct with `deps.edn`, however it is
1712+ possible to use Duct with Leiningen.
1713+
1714+ To do so, you'll need to update your project file with profile for Duct,
1715+ and an alias to run it:
1716+
1717+ .project
1718+ [,clojure]
1719+ ----
1720+ (defproject org.example/app "0.1.0-SNAPSHOT"
1721+ ;; the rest of your project file goes here
1722+ :aliases {"duct" ["trampoline" "with-profile" "+duct" "run"]}
1723+ :profiles {:duct {:dependencies [[org.duct-framework/main "0.1.11"]]
1724+ :main duct.main}})
1725+ ----
1726+
1727+ Now you can run Duct with:
1728+
1729+ [,shell]
1730+ ----
1731+ lein duct
1732+ ----
1733+
1734+ Note that the startup time suffers somewhat. In local tests using
1735+ Leiningen increased startup time from 900ms to 1400ms.
1736+
17071737=== Visual Studio Code
17081738
17091739https://code.visualstudio.com/[Visual Studio Code] is a popular modern
You can’t perform that action at this time.
0 commit comments