This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-10-27
Channels
- # announcements (11)
- # aws (1)
- # babashka (15)
- # beginners (345)
- # calva (5)
- # chlorine-clover (14)
- # clj-kondo (40)
- # cljfx (30)
- # clojure (174)
- # clojure-australia (6)
- # clojure-europe (64)
- # clojure-france (1)
- # clojure-nl (12)
- # clojure-uk (20)
- # clojurescript (29)
- # conjure (1)
- # core-async (53)
- # cryogen (3)
- # cursive (8)
- # datomic (12)
- # emacs (5)
- # events (4)
- # fulcro (27)
- # graalvm (1)
- # graphql (9)
- # helix (8)
- # keechma (11)
- # london-clojurians (1)
- # malli (12)
- # off-topic (12)
- # pathom (8)
- # portal (1)
- # re-frame (19)
- # reagent (13)
- # reitit (16)
- # ring-swagger (2)
- # sci (38)
- # shadow-cljs (31)
- # spacemacs (3)
- # specter (14)
- # sql (14)
- # tools-deps (31)
- # vim (4)
- # xtdb (9)
Is there an easy method of using your own modules in baba? Say I just wanted to extract some functions, already written, and use them in several scripts…
@schpaencoder Sure. You can make libraries like you would with clj and then add them to your classpath with export BABASHKA_CLASSPATH=$(clojure -Spath ...)
You can use github repositories as dependencies with clojure
.
Another option is to just add your utilities to the classpath with export BABASHKA_CLASSPATH=/home/foobar/babashka_libs
for example
@schpaencoder It doesn't require you to make .jar files. You can use any directory on the classpath.
It does follow the convention of clojure in that foo-bar.baz
searches for /foo_bar/baz.clj
@schpaencoder The docs for classpath are here: https://github.com/borkdude/babashka#classpath