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 --- Makefile | 9 --------- README.md | 50 ++++++++++++++++++++++++++------------------------ justfile | 7 +++++++ 3 files changed, 33 insertions(+), 33 deletions(-) delete mode 100644 Makefile create mode 100644 justfile diff --git a/Makefile b/Makefile deleted file mode 100644 index 3995594..0000000 --- a/Makefile +++ /dev/null @@ -1,9 +0,0 @@ -build-wasm: - @cd go && tinygo build -o ../resources/mf2go.wasm -target wasip1 -buildmode=c-shared main.go - -build-jar: - @lein uberjar - -build: - @make build-wasm - @make build-jar 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. diff --git a/justfile b/justfile new file mode 100644 index 0000000..c82eac1 --- /dev/null +++ b/justfile @@ -0,0 +1,7 @@ +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 -- cgit v1.2.3