bytestone-org/Taskfile.yml
hum3 ffb865876a Story 006: the search as you type on the front page, over the lives on i.bytestone.org (#26)
life-weaver's kinship.wasm loaded from the site of lives, named in
data-lives on the form; each match a link there; the form hands the
name on as before without script.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-11-04 15:23:38 +00:00

48 lines
2.2 KiB
YAML

version: "3"
tasks:
check:
desc: The front and about pages say what stories 002 to 006 ask, Dan Briggs's memorial is byte for byte as mirrored, no file name carries a query string
cmds:
- grep -q 'class="count"' site/index.html && grep -q 'data-count' site/index.html
- grep -q 'class="memorial"' site/index.html && grep -q 'class="recent"' site/index.html && grep -q 'data-recent' site/index.html
- grep -q "'kin.json'" site/index.html
- grep -q 'action="https://i.bytestone.org/"' site/index.html
- grep -q 'name="q"' site/index.html
- grep -q 'data-lives="https://i.bytestone.org/"' site/index.html && grep -q 'id="results"' site/index.html
- grep -q 'src="https://i.bytestone.org/wasm_exec.js"' site/index.html && grep -q "'kinship.wasm'" site/index.html
- grep -q '\.results' site/style.css
- grep -q 'href="/w/dbriggs/' site/index.html
- grep -q 'href="https://i.bytestone.org/"' site/index.html
- grep -q '2010' site/about.html
- grep -q 'Humphrey Drummond' site/about.html
- grep -qi 'charity' site/about.html
- grep -q 'U 240' site/about.html
- test -f site/items.html && test -f site/collections.html && test -f site/items/show/1.html
- cd site && sha256sum --quiet -c ../dbriggs.sha256
- test -z "$(find site -name '*[?]*')"
- test -z "$(grep -l 'i.bytestone.uk' site/index.html)"
- '! grep -q ''href="https://i.bytestone.uk'' site/about.html'
- test -f site/margin.svg && grep -q 'xmlns="http://www.w3.org/2000/svg"' site/margin.svg
- "grep -q 'body.front::before, body.front::after, body.about::before, body.about::after' site/style.css && grep -q 'mask: url(margin.svg)' site/style.css"
test:
desc: Alias of check
cmds:
- task: check
publish:
desc: Publish site/ to www.bytestone.org (rsync to the shared host via tp pages deploy)
cmds:
- tp pages deploy
serve:
desc: Preview site/ with tp pages on the first free port from 8080 to 8089
cmds:
- |
for p in $(seq 8080 8089); do
if ! (exec 3<>/dev/tcp/127.0.0.1/$p) 2>/dev/null; then
exec tp pages -site bytestone-org -port $p
fi
done
echo "serve: ports 8080-8089 all in use" >&2; exit 1