check / check (push) Successful in 2m52s
nix's bun loads through a glibc in the nix store, and bun build --compile copied that loader into bin/quak, so nix-collect-garbage could break the cron backup. The build moves into script/build-bin. On Linux it downloads bun 1.3.13's release archive for x86-64 (baseline) or arm64 from GitHub, checks its SHA-256 before running it, and compiles with that bun, so the binary loads through the system loader. macOS still runs bun through nix-shell. Model: opus-5-5
48 lines
570 B
Makefile
48 lines
570 B
Makefile
.PHONY: bootstrap setup test lint fmt fmt-check check build build-bin install dev clean docker hooks
|
|
|
|
YARN := yarn run
|
|
|
|
bootstrap:
|
|
@script/bootstrap
|
|
|
|
setup:
|
|
@script/setup
|
|
|
|
test:
|
|
@script/test
|
|
|
|
lint:
|
|
@script/lint
|
|
|
|
fmt:
|
|
@script/fmt
|
|
|
|
fmt-check:
|
|
@script/fmt-check
|
|
|
|
check:
|
|
@script/check
|
|
|
|
build:
|
|
@script/build
|
|
|
|
build-bin:
|
|
@script/build-bin
|
|
|
|
install: build-bin
|
|
mkdir -p ~/bin
|
|
cp bin/quak ~/bin/quak
|
|
chmod +x ~/bin/quak
|
|
|
|
dev:
|
|
@$(YARN) tsc --watch
|
|
|
|
clean:
|
|
@rm -rf dist coverage .vitest-cache *.tsbuildinfo
|
|
|
|
docker:
|
|
@script/docker
|
|
|
|
hooks:
|
|
@script/install-precommit
|