Skip to content

Commit 0ae3fc9

Browse files
committed
Add section on Babashka integration
1 parent 72d5dac commit 0ae3fc9

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

index.adoc

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1802,6 +1802,37 @@ outside of Duct:
18021802

18031803
== Integrations
18041804

1805+
=== Babashka
1806+
1807+
https://babashka.org/[Babashka] is a fast, native Clojure scripting
1808+
runtime, and it includes a task runner that can be configured with a
1809+
`bb.edn` file.
1810+
1811+
Duct can set up a basic `bb.edn` file for you with the `--init-bb`
1812+
option.
1813+
1814+
[,shell]
1815+
----
1816+
$ duct --init-bb
1817+
Created bb.edn
1818+
----
1819+
1820+
This sets up three tasks: `main`, `test` and `repl` that correspond
1821+
to running `--main`, `--test` and `--repl`.
1822+
1823+
[,shell]
1824+
----
1825+
$ bb test
1826+
✓ Loading test environment
1827+
[(..)]
1828+
2 tests, 2 assertions, 0 failures.
1829+
----
1830+
1831+
One advantage of using a task runner like Babashka is that you can
1832+
specify different dependencies for task. Another advantage is that a new
1833+
developer doesn't have to set up a `duct` alias as long as they have
1834+
Babashka installed.
1835+
18051836
=== Docker
18061837

18071838
https://www.docker.com/[Docker] is a system for running software in

0 commit comments

Comments
 (0)