diff options
| author | eltrac <hi@eltr.ac> | 2026-10-15 18:11:48 +0800 |
|---|---|---|
| committer | eltrac <hi@eltr.ac> | 2026-10-15 18:11:48 +0800 |
| commit | 802588504066836dedebf54d0006a2908fe95d6d (patch) | |
| tree | de76731e85afa99bb693480a369436f0fd322bfb | |
| parent | a83912453d58da1811b75b2bdb80c594c0387b8d (diff) | |
project: replace just command runner with Babashka tasks
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | README.md | 17 | ||||
| -rw-r--r-- | bb.edn | 10 | ||||
| -rw-r--r-- | justfile | 7 |
4 files changed, 15 insertions, 20 deletions
@@ -5,3 +5,4 @@ /.nrepl-port /target /native/ +/.clj-kondo @@ -6,10 +6,6 @@ A Clojure library that parses [microformats](http://microformats.org/). Under th ## Usage
-```
-[ac.eltr/mf2clj "0.0.3"]
-```
-
```clojure
(require '[mf2clj.core :as mf2clj])
(mf2clj/parse html-string)
@@ -17,17 +13,12 @@ A Clojure library that parses [microformats](http://microformats.org/). Under th ## Development
-Make sure you have [tinygo](https://tinygo.org/) compiler, [Leiningen](https://leiningen.org/) and [just](https://github.com/casey/just) installed. *Why not `make`, you say? Because, my friend, [make is crap](https://invidio.us/watch?v=YjXfjdCmfD4).*
+Make sure you have [tinygo](https://tinygo.org/) compiler, [Leiningen](https://leiningen.org/) and [Babashka](http://babashka.org/) installed.
-```sh
-# compile Go to WebAssembly (WASIP1)
-just build-wasm
-
-# compile Clojure wrapper to .jar
-just build-jar # or lein uberjar
+Run the following command to build WebAseembly and `.jar`.
-# compile both
-just build
+```sh
+bb build
```
---
@@ -0,0 +1,10 @@ +{:tasks
+ {build-wasm (do (println "building wasm...")
+ (shell {:dir "go"} "tinygo" "build"
+ "-o" "../resources/mf2go.wasm"
+ "-target" "wasip1"
+ "-buildmode=c-shared"
+ "main.go"))
+ build {:depends [build-wasm]
+ :task (do (println "building jar...")
+ (shell "lein" "uberjar"))}}}
diff --git a/justfile b/justfile deleted file mode 100644 index c82eac1..0000000 --- a/justfile +++ /dev/null @@ -1,7 +0,0 @@ -build-wasm: - cd go && tinygo build -o ../resources/mf2go.wasm -target wasip1 -buildmode=c-shared main.go - -build-jar: - lein uberjar - -build: build-wasm build-jar |
