From 3e7d57444a52a53d562ea88f2877cae546701a50 Mon Sep 17 00:00:00 2001 From: Robin Olsen Date: Wed, 18 Feb 2026 17:42:51 +0100 Subject: [PATCH] add .vscode to gitignore so it does not change update makefile to tidy before running and clean better --- .gitignore | 3 ++- Makefile | 25 ++++++++++++++++--------- 2 files changed, 18 insertions(+), 10 deletions(-) diff --git a/.gitignore b/.gitignore index fa42a91..99e666a 100644 --- a/.gitignore +++ b/.gitignore @@ -2,9 +2,10 @@ *.db *.ext bin + .idea +.vscode node_modules/ package-lock.json package.json -pkg/web/node_modules/ diff --git a/Makefile b/Makefile index 2b51b88..6f1bec9 100644 --- a/Makefile +++ b/Makefile @@ -4,12 +4,16 @@ tidy: go mod tidy clean: - go clean + @go clean + @rm -rf ./bin + @rm -rf ./.pm + @rm -rf node_modules -build: +build: tidy go build -o ./bin/pm ./cmd/pm go build -o ./bin/tui ./cmd/tui go build -o ./bin/web ./cmd/web + go build -o ./bin/survey ./cmd/survey docker-build: @docker build -t survey . @@ -17,20 +21,23 @@ docker-build: docker-run: @docker run -it -p 8080:8080 survey:latest -cli: +cli: tidy go run ./cmd/pm -tui: +tui: tidy go run ./cmd/tui -web: +web: tidy go run ./cmd/web -# Run both dev and tw in parallel for generating templates and compiling Tailwind CSS on file changes -dev: - @go tool templ generate -watch -cmd "go run ./cmd/web" -tw: +tw-install: @npm install tailwindcss@latest @tailwindcss/cli@latest @tailwindcss/typography daisyui@latest + +# Run both dev and tw in parallel for generating templates and compiling Tailwind CSS on file changes +dev: tidy + @go tool templ generate -watch -cmd "go run ./cmd/web" + +tw: tw-install @npx --yes @tailwindcss/cli -i ./pkg/web/input.css -o ./pkg/web/assets/css/styles.css --watch --minify