check / check (push) Failing after 46s
A plain `docker build .` now stamps the version from git rather than `dev`/`0.0.0`. After `tsc`, `script/build` writes into `dist/package.json` the version `script/version` decides: `VERSION` when given, otherwise `git describe --tags --always` (the tag; or tag, commits since and short commit; or the short commit), otherwise `package.json`'s. A checkout with `.git` that yields an empty, `dev` or `unknown` version fails the build. `.dockerignore` sends `.git` but not `.git/config`, so no remote URL or credential reaches the image. `ARG VERSION` has no default, and the host scripts' version still wins. Not changed: `REPO_POLICIES.md` still says `ARG VERSION=dev` until the shared policy changes. Model: opus-5-5 Co-authored-by: clawbot <sneak+clawbot@sneak.cloud>
50 lines
724 B
Makefile
50 lines
724 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
|
|
|
|
# Bundles the built dist/, so the binary reports the version script/build
|
|
# stamped.
|
|
build-bin: build
|
|
nix-shell -p bun --run "bun build dist/bin/quak.js --compile --outfile bin/quak"
|
|
|
|
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
|