check / check (push) Waiting to run
make css ran whatever tailwindcss binary was on the host's PATH, so the committed stylesheet depended on the machine that built it, and nothing noticed when a template used a class the stylesheet lacked. make css now runs the standalone tailwindcss v4.2.1, pinned by sha256, in a Dockerfile stage, and a check stage, run by make check and required by the image build, fails when the committed static/css/tailwind.css differs from what the templates need, showing the differing rules. input.css names its sources. The unused .btn-text is removed and the stylesheet regenerated, dropping only unused rules. The README has a Stylesheet section. Model: opus-5-5
16 lines
426 B
Bash
Executable File
16 lines
426 B
Bash
Executable File
#!/bin/sh
|
|
# script/css: regenerate static/css/tailwind.css (writes). tailwindcss is
|
|
# never installed locally: it runs in docker, at the version and sha256
|
|
# pinned in the Dockerfile's stylesheet stages, which also say what the
|
|
# stylesheet is generated from.
|
|
set -eu
|
|
|
|
ROOT="$(cd "$(dirname "$0")/.." && pwd -P)"
|
|
|
|
main() {
|
|
cd "$ROOT"
|
|
docker build --target css-output --output type=local,dest=static/css .
|
|
}
|
|
|
|
main "$@"
|