justfile: foolproof+document targets [skip ci]

This commit is contained in:
leo 2023-04-20 13:30:10 +02:00
parent 5b63997aaf
commit b1c926befd
Signed by: wanderer
SSH Key Fingerprint: SHA256:Dp8+iwKHSlrMEHzE3bJnPng70I7LEsa3IJXRH/U+idQ

@ -1,20 +1,30 @@
# run tailwindcss tool in watch mode.
watch-tw:
npm i
mkdir -pv static
npx tailwindcss -i ./assets/input.css -o ./static/pcmt.css --watch
# start browser-sync.
watch-brs:
npm i
npx browser-sync start --config bs.js
# build app stylesheets using the tailwindcss cli tool.
tw:
npm i
mkdir -p static
npx tailwindcss -i ./assets/input.css -o ./static/pcmt.css --minify
# build the application.
build:
go mod tidy
go build -v -ldflags="-X main.version=$(git rev-parse --short HEAD)" .
# run the application.
run:
./pcmt -devel
# build and run the application
dev: build run
# generate code based on ent schemas.