main's tree, with next merged on 26 October, as one commit onto prod, on sneak's order. Model: opus-5-5 Co-authored-by: clawbot <clawbot@noreply.example.org>
This commit was merged in pull request #198.
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
.PHONY: bootstrap setup dev test lint fmt fmt-check check frontend-check \
|
||||
frontend-viewport-test docker hooks
|
||||
.PHONY: bootstrap setup dev build run clean test lint fmt fmt-check check \
|
||||
add-dependency tidy 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/.
|
||||
# repo: the frontend in web/ and the Go backend in cmd/ and internal/.
|
||||
|
||||
bootstrap:
|
||||
@script/bootstrap
|
||||
@@ -13,7 +13,18 @@ setup:
|
||||
@script/setup
|
||||
|
||||
dev:
|
||||
yarn dev
|
||||
@script/dev
|
||||
|
||||
# The frontend into dist/ and the netwatch-server binary.
|
||||
build:
|
||||
@script/build
|
||||
|
||||
# Builds, then runs netwatch-server on port 8080.
|
||||
run:
|
||||
@script/run
|
||||
|
||||
clean:
|
||||
@script/clean
|
||||
|
||||
test:
|
||||
@script/test
|
||||
@@ -30,14 +41,16 @@ fmt-check:
|
||||
check:
|
||||
@script/check
|
||||
|
||||
# The frontend half of check, for Dockerfile's node build stage, which
|
||||
# has neither Go nor Docker. Use check everywhere else.
|
||||
frontend-check:
|
||||
@script/frontend-check
|
||||
# make add-dependency PACKAGE=<name>@<version>. PACKAGE reaches the
|
||||
# script through the environment, so the shell never reads it as code.
|
||||
add-dependency:
|
||||
@script/add-dependency "$$PACKAGE"
|
||||
|
||||
tidy:
|
||||
@script/tidy
|
||||
|
||||
# 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.
|
||||
# check: it takes minutes.
|
||||
frontend-viewport-test:
|
||||
@script/frontend-viewport-test
|
||||
|
||||
|
||||
Reference in New Issue
Block a user