make fmt and make fmt-check covered only Go, so Markdown formatting was checked by eye. prettier, pinned in package.json and yarn.lock beside ESLint and installed by the same js-deps stage, now formats every Markdown file with the settings in .prettierrc (4-space tabs, prose wrapped). It runs only in Docker: make fmt writes the formatted files back from the markdown-output stage, and make fmt-check and the image build run the markdown-check stage. The Dockerfile's lint stage now runs the gofmt check itself, since make fmt-check needs a docker daemon. Model: opus-5-5
31 lines
1.0 KiB
Plaintext
31 lines
1.0 KiB
Plaintext
# .git is sent so the build can derive the version it stamps into the binary
|
|
# (script/version). Its config, which can hold a remote URL carrying a
|
|
# credential and which `git describe` does not need, is left out of a
|
|
# directory context. A context sent as a tar is not filtered by this file, so
|
|
# it carries .git/config unless its sender leaves it out.
|
|
.git/config
|
|
|
|
# No tracked file may be listed here: git in the build would see it as
|
|
# deleted and mark the version -dirty.
|
|
#
|
|
# .ci-fingerprint is deliberately NOT excluded: it is the CI cache barrier
|
|
# that keeps the check stages from replaying a cached pass. See the lint
|
|
# stage of the Dockerfile.
|
|
bin/
|
|
# Extracted from 3p/ by `make assets` inside the build; a host copy is not
|
|
# needed. The tarball in 3p/ must stay in the context.
|
|
static/js/alpine.min.js
|
|
# The js-deps stage installs ESLint and prettier; a host copy would overwrite
|
|
# them at the `COPY . .` of the stages built on it.
|
|
node_modules/
|
|
.env
|
|
.env.*
|
|
*.db
|
|
*.sqlite
|
|
*.sqlite3
|
|
.DS_Store
|
|
.idea/
|
|
.vscode/
|
|
tmp/
|
|
temp/
|