check / check (push) Successful in 4m0s
No entrypoint could change yarn.lock or go.mod: script/bootstrap installs with --frozen-lockfile, so adding a package meant running yarn by hand. make add-dependency PACKAGE=<name>@<version> shims to the new script/add-dependency: yarn add --dev, then yarn install --frozen-lockfile. make tidy shims to the new script/tidy, go mod tidy in backend/; a Go module is added by importing it, or moved by editing its require line, then make tidy. script/bootstrap is unchanged. Model: opus-5-5
60 lines
1.2 KiB
Makefile
60 lines
1.2 KiB
Makefile
.PHONY: bootstrap setup dev build test lint fmt fmt-check check \
|
|
add-dependency tidy frontend-check frontend-viewport-test docker hooks
|
|
|
|
# Standard targets are thin shims; the implementations live in script/
|
|
# per the scripts-to-rule-them-all pattern (see the Entrypoints section
|
|
# of README.md). test, lint, fmt, fmt-check and check cover the whole
|
|
# repo: the frontend here and the Go backend in backend/.
|
|
|
|
bootstrap:
|
|
@script/bootstrap
|
|
|
|
setup:
|
|
@script/setup
|
|
|
|
dev:
|
|
@script/dev
|
|
|
|
# The frontend only; backend/Makefile's build target builds the Go server.
|
|
build:
|
|
@script/build
|
|
|
|
test:
|
|
@script/test
|
|
|
|
lint:
|
|
@script/lint
|
|
|
|
fmt:
|
|
@script/fmt
|
|
|
|
fmt-check:
|
|
@script/fmt-check
|
|
|
|
check:
|
|
@script/check
|
|
|
|
# make add-dependency PACKAGE=<name>@<version>
|
|
add-dependency:
|
|
@script/add-dependency "$(PACKAGE)"
|
|
|
|
tidy:
|
|
@script/tidy
|
|
|
|
# The frontend tests and format check, for Dockerfile's frontend stage,
|
|
# which has neither Go nor Docker. Use check everywhere else.
|
|
frontend-check:
|
|
@script/frontend-check
|
|
|
|
# Responsive-layout verification in a containerised browser. Kept out of
|
|
# check: it needs Docker and takes minutes, where make test has to stay
|
|
# under 20 seconds.
|
|
frontend-viewport-test:
|
|
@script/frontend-viewport-test
|
|
|
|
docker:
|
|
@script/docker
|
|
|
|
hooks:
|
|
@script/install-precommit
|