I get told to shut up a lot by my friend. This is the microsite that documents this in detail.
shutup.jp
postcards
microsite
1# https://taskfile.dev
2
3version: '3'
4
5dotenv:
6 - .env
7
8tasks:
9 build:
10 desc: Builds the site from constituent parts
11 cmds:
12 - go run .
13 serve:
14 desc: Serves the site locally (with no auto-updating)
15 cmds:
16 - serve -port 8081 -host 0.0.0.0 -dir dist/
17 dev:
18 desc: Allows for local development, rerunning `task build` when changes are spotted
19 cmds:
20 - task serve & find {*.tmpl,static,*.go} -type f | entr -cc task build
21 postcards:
22 desc: Pulls postcards from `ORIGINAL_POSTCARDS` (as specified in `.env`)
23 cmds:
24 - postcards -f web --remove-border --out-dir ./postcards "${ORIGINAL_POSTCARDS}"/*