d2/d2js/js/Makefile

25 lines
427 B
Makefile
Raw Normal View History

2025-01-12 14:41:58 +00:00
.POSIX:
.PHONY: all
2025-01-13 04:43:03 +00:00
all: fmt build test cleanup
2025-01-12 14:41:58 +00:00
.PHONY: fmt
fmt: node_modules
prefix "$@" ../../ci/sub/bin/fmt.sh
prefix "$@" rm -f yarn.lock
.PHONY: build
2025-01-13 04:43:03 +00:00
build: fmt
2025-01-12 14:41:58 +00:00
prefix "$@" ./ci/build.sh
.PHONY: test
test: build
prefix "$@" bun test:all
.PHONY: node_modules
node_modules:
prefix "$@" bun install $${CI:+--frozen-lockfile}
2025-01-13 04:43:03 +00:00
.PHONY: cleanup
cleanup: test
2025-01-14 06:00:37 +00:00
prefix "$@" git checkout -- src/platform.js src/worker.js