diff options
| -rw-r--r-- | Makefile | 9 | ||||
| -rw-r--r-- | README.md | 50 | ||||
| -rw-r--r-- | justfile | 7 |
3 files changed, 33 insertions, 33 deletions
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
@@ -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 |
