-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
31 lines (24 loc) · 717 Bytes
/
justfile
File metadata and controls
31 lines (24 loc) · 717 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
default:
just --list
[parallel]
watch-and-generate: tailwind-watch templ
tailwind-watch:
tailwindcss -i ./views/assets/css/input.css -o ./views/assets/css/output.css --watch
templ:
go tool templ generate --watch --proxy="http://localhost:8090" --cmd="go run ./cmd/server/main.go" --open-browser=false
# Start dev server
dev:
rm -f ./views/assets/css/output.css
just watch-and-generate
# Build the server and CLI
build:
go tool templ generate
tailwindcss -i ./views/assets/css/input.css -o ./views/assets/css/output.css --minify
go build -o dist/server ./cmd/server
go install ./cmd/blkhell
# Run the server
serve: build
./dist/server
# Run tests
test:
go test ./...