From bb4d7ae37f3cb28cdcac2540407420bb9f2ee68a Mon Sep 17 00:00:00 2001 From: eltrac Date: Mon, 21 Sep 2026 20:23:03 +0800 Subject: use just instead of make --- README.md | 50 ++++++++++++++++++++++++++------------------------ 1 file changed, 26 insertions(+), 24 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index dc93e3b..5cefe8c 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,32 @@ A Clojure library that parses [microformats](http://microformats.org/). Under the hood, it's a thin wrapper of a [Extism](https://extism.org/) plugin written in Go (source of which is also in this repository), and the plugin itself is a wrapper of Will Norris' [microformats parser](https://github.com/willnorris/microformats). *Yes, that's a lot of wrappers! I have a good excuse for that.* +## Usage + +``` +[ac.eltr/mf2clj "0.0.3"] +``` + +```clojure +(require '[mf2clj.core :as mf2clj]) +(mf2clj/parse html-string) +``` + +## 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).* + +```sh +# compile Go to WebAssembly (WASIP1) +just build-wasm + +# compile Clojure wrapper to .jar +just build-jar # or lein uberjar + +# compile both +just build +``` + --- ## How It Works @@ -76,30 +102,6 @@ I suppose I could use [Rust](https://crates.io/crates/microformats/0.2.0), but i --- -## Usage - -``` -[ac.eltr/mf2clj "0.0.3"] -``` - -```clojure -(require '[mf2clj.core :as mf2clj]) -(mf2clj/parse html-string) -``` - -## Development - -```sh -# compile Go to WebAssembly (WASIP1) -make build-wasm - -# compile Clojure wrapper to .jar -make build-jar # or lein uberjar - -# compile both -make build -``` - ## License mf2clj is free software licensed under the GNU Affero General Public License. -- cgit v1.2.3