d2/d2js/js/Makefile

21 lines
338 B
Makefile
Raw Normal View History

2025-01-12 14:41:58 +00:00
.POSIX:
.PHONY: all
all: fmt build test
.PHONY: fmt
fmt: node_modules
prefix "$@" ../../ci/sub/bin/fmt.sh
prefix "$@" rm -f yarn.lock
.PHONY: build
build: node_modules
prefix "$@" ./ci/build.sh
.PHONY: test
test: build
prefix "$@" bun test:all
.PHONY: node_modules
node_modules:
prefix "$@" bun install $${CI:+--frozen-lockfile}