From b1c926befdfa6a8cb0adb1f449895aee0fc81c45 Mon Sep 17 00:00:00 2001 From: leo Date: Thu, 20 Apr 2023 13:30:10 +0200 Subject: [PATCH] justfile: foolproof+document targets [skip ci] --- justfile | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/justfile b/justfile index 0b792f7..6dd1808 100644 --- a/justfile +++ b/justfile @@ -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.