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.
1608
1608
----
1609
1609
1610
1610
To 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.
1612
1614
1613
1615
== Integrations
1614
1616
@@ -1704,6 +1706,34 @@ kbd:[M-x] `cider-ns-refresh` kbd:[RET]
1704
1706
There's also a key binding for this command:
1705
1707
kbd:[C-c] kbd:[M-n] kbd:[r]
1706
1708
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
+
1707
1737
=== Visual Studio Code
1708
1738
1709
1739
https://code.visualstudio.com/[Visual Studio Code] is a popular modern
You can’t perform that action at this time.
0 commit comments