From 986a16c34049187a6c1f39f38bfa59e327093494 Mon Sep 17 00:00:00 2001 From: Murilo Ijanc Date: Sun, 26 Jul 2026 12:15:55 -0300 Subject: Initial import --- Makefile | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..7991202 --- /dev/null +++ b/Makefile @@ -0,0 +1,39 @@ +BUN ?= bun + +.DEFAULT_GOAL := help +.PHONY: help install test lint format build check clean + +help: + @echo 'Targets:' + @echo ' install install the development dependencies' + @echo ' test run the test suite (bun test)' + @echo ' lint tsc --noEmit + prettier --check (read-only)' + @echo ' format apply prettier (writes)' + @echo ' build bundle to dist/ and emit type declarations' + @echo ' check lint + test + build, in that order' + @echo ' clean remove build artefacts' + +node_modules: package.json + $(BUN) install + @touch node_modules + +install: node_modules + +test: node_modules + $(BUN) test + +lint: node_modules + $(BUN) x tsc -p tsconfig.json + $(BUN) x prettier --check . + +format: node_modules + $(BUN) x prettier --write . + +build: node_modules + rm -rf dist + $(BUN) run build + +check: lint test build + +clean: + rm -rf dist -- cgit v1.3