Merge remote-tracking branch 'origin/main' into LPM-58

This commit is contained in:
Robin Olsen
2026-02-18 17:51:50 +01:00
2 changed files with 18 additions and 10 deletions

3
.gitignore vendored
View File

@@ -2,9 +2,10 @@
*.db *.db
*.ext *.ext
bin bin
.idea .idea
.vscode
node_modules/ node_modules/
package-lock.json package-lock.json
package.json package.json
pkg/web/node_modules/

View File

@@ -4,12 +4,16 @@ tidy:
go mod tidy go mod tidy
clean: 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/pm ./cmd/pm
go build -o ./bin/tui ./cmd/tui go build -o ./bin/tui ./cmd/tui
go build -o ./bin/web ./cmd/web go build -o ./bin/web ./cmd/web
go build -o ./bin/survey ./cmd/survey
docker-build: docker-build:
@docker build -t survey . @docker build -t survey .
@@ -17,20 +21,23 @@ docker-build:
docker-run: docker-run:
@docker run -it -p 8080:8080 survey:latest @docker run -it -p 8080:8080 survey:latest
cli: cli: tidy
go run ./cmd/pm go run ./cmd/pm
tui: tui: tidy
go run ./cmd/tui go run ./cmd/tui
web: web: tidy
go run ./cmd/web go run ./cmd/web
# Run both dev and tw in parallel for generating templates and compiling Tailwind CSS on file changes tw-install:
dev:
@go tool templ generate -watch -cmd "go run ./cmd/web"
tw:
@npm install tailwindcss@latest @tailwindcss/cli@latest @tailwindcss/typography daisyui@latest @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 @npx --yes @tailwindcss/cli -i ./pkg/web/input.css -o ./pkg/web/assets/css/styles.css --watch --minify