24 lines
413 B
Makefile
24 lines
413 B
Makefile
.POSIX:
|
|
.PHONY: all
|
|
all: fmt build test cleanup
|
|
|
|
.PHONY: fmt
|
|
fmt: node_modules
|
|
prefix "$@" ../../ci/sub/bin/fmt.sh
|
|
prefix "$@" rm -f yarn.lock
|
|
|
|
.PHONY: build
|
|
build: fmt
|
|
prefix "$@" ./ci/build.sh
|
|
|
|
.PHONY: test
|
|
test: build
|
|
prefix "$@" bun test:all
|
|
|
|
.PHONY: node_modules
|
|
node_modules:
|
|
prefix "$@" bun install $${CI:+--frozen-lockfile}
|
|
|
|
.PHONY: cleanup
|
|
cleanup: test
|
|
prefix "$@" git checkout -- src/platform.js
|