From 62c4b374f99b966daef9103611f268a85bafd134 Mon Sep 17 00:00:00 2001 From: Eugene Blikh Date: Thu, 21 May 2026 10:24:42 +0300 Subject: [PATCH] chore(build): replace Makefile with Justfile Switch the build tooling from make to just. - Remove Makefile. - Add Justfile with run, build, build-wasm, serve, and play-web recipes. --- Justfile | 28 ++++++++++++++++++++++++++++ Makefile | 26 -------------------------- 2 files changed, 28 insertions(+), 26 deletions(-) create mode 100644 Justfile delete mode 100644 Makefile diff --git a/Justfile b/Justfile new file mode 100644 index 0000000000000000000000000000000000000000..662d74cc6fcc1bd8570c84ab18f929c894eaf2c8 --- /dev/null +++ b/Justfile @@ -0,0 +1,28 @@ +default: + @just --list + +run: + go run . + +build: + mkdir -p bin + go build -o bin/ftl-shape . + +build-wasm: + mkdir -p web + GOOS=js GOARCH=wasm go build -o web/main.wasm . + cp "$(go env GOROOT)/lib/wasm/wasm_exec.js" web/wasm_exec.js + +serve: + go run github.com/hajimehoshi/wasmserve@latest . + +play-web: + #!/usr/bin/env bash + mkdir -p web + case "$(uname -s)" in + Darwin) OPEN_CMD=open ;; + Linux) OPEN_CMD=xdg-open ;; + *) OPEN_CMD=: ;; + esac + ( sleep 1 && $OPEN_CMD http://localhost:8080 ) & + go run github.com/hajimehoshi/wasmserve@latest . diff --git a/Makefile b/Makefile deleted file mode 100644 index 93e68255f014c6fb12bfae3df33fb282775d3c61..0000000000000000000000000000000000000000 --- a/Makefile +++ /dev/null @@ -1,26 +0,0 @@ -.PHONY: run build build-wasm serve play-web - -run: - go run . - -build: - @mkdir -p bin - go build -o bin/ftl-shape . - -build-wasm: - @mkdir -p web - GOOS=js GOARCH=wasm go build -o web/main.wasm . - cp "$$(go env GOROOT)/lib/wasm/wasm_exec.js" web/wasm_exec.js - -serve: - go run github.com/hajimehoshi/wasmserve@latest . - -play-web: - @mkdir -p web - @case "$$(uname -s)" in \ - Darwin) OPEN_CMD=open ;; \ - Linux) OPEN_CMD=xdg-open ;; \ - *) OPEN_CMD=: ;; \ - esac; \ - ( sleep 1 && $$OPEN_CMD http://localhost:8080 ) & \ - go run github.com/hajimehoshi/wasmserve@latest .