Add the standard STRTA scaffold (no Makefile present) #4
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This repo has no
Makefileand noscript/scaffold, so it diverges from our standard scripts-to-rule-them-all (STRTA) layout. Under STRTA, theMakefileis a set of thin shims that delegate toscript/*POSIX-shentrypoints, and CI runsscript/cibuild. STRTA is language-agnostic: it applies to this Hugo static site as it does to our other repos. The living reference is thenetwatchrepo (Makefile+script/+.gitea/workflows/check.yml); mirror its structure, withscript/*bodies appropriate to a Hugo site.Current state (nonconformance)
Makefileonmainat all.script/directory. No.gitea/workflows/check.yml.Definition of done
Makefileis added with a.PHONYdeclaration listing at least the nine standard targets:bootstrap,setup,test,lint,fmt,fmt-check,check,docker,hooks.@script/NAME(testcalls@script/test,hookscalls@script/install-precommit, etc.). Repo-specific extra targets (for example aserve/devthat runshugo server) are allowed but must not replace the standard shims.script/directory holds executable POSIX-shentrypoints (#!/bin/sh,set -e) forbootstrap,setup,test,lint,fmt,fmt-check,check,docker,install-precommit, pluscibuild, with Hugo-appropriate bodies (for exampletest/checkrunshugo --minifyas a build check and, if configured, an HTML/link check;fmt/fmt-checkcover the site's formatted files where applicable).script/checkruns the site's full local verification (at minimum a cleanhugobuild);script/cibuildis the CI entrypoint (docker build .), and aDockerfilebuild runsmake checkso the image build fails on any check failure..gitea/workflows/check.ymlis added and invokesscript/cibuild.make checkpasses locally anddocker build .succeeds (green) before the change lands.The finishing commit's title must end with
(closes #N)referencing this issue.