File
TARGETS := $$(find . \( -name '*.ts' -or -name '*.md' \) -not -path './example/*') VERSION := $$(git describe --tags --always --dirty) .DEFAULT_GOAL := help help: @cat $(MAKEFILE_LIST) | \ perl -ne 'print if /^\w+.*##/;' | \ perl -pe 's/(.*):.*##\s*/sprintf("%-20s",$$1)/eg;' fmt: FORCE ## Format code @deno fmt ${TARGETS} fmt-check: FORCE ## Format check @deno fmt --check ${TARGETS} lint: FORCE ## Lint code @deno lint ${TARGETS} type-check: FORCE ## Type check @deno test --unstable --no-run ${TARGETS} test: FORCE ## Test @deno test --unstable -A ${TARGETS} deps: FORCE ## Update dependencies @deno run -A https://deno.land/x/udd@0.7.2/main.ts ${TARGETS} @make fmt FORCE: