-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjustfile
50 lines (38 loc) · 884 Bytes
/
justfile
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
set dotenv-load
up:
docker compose up --wait
air
down:
docker compose down
deps:
asdf plugin add golang
asdf plugin add nodejs
asdf install
npm install
go install github.com/golangci/golangci-lint/cmd/[email protected]
go install github.com/cosmtrek/air@latest
go install github.com/a-h/templ/cmd/templ@latest
go install github.com/sqlc-dev/sqlc/cmd/sqlc@latest
go install github.com/amacneil/dbmate@latest
asdf reshim golang
pre: css templ
css:
npx tailwind -i ./app.css -o ./assets/app.css
fonts:
cp ./node_modules/@fontsource/inter/files/inter-latin-400-normal.woff* ./assets/
templ:
templ generate .
fmt:
go fmt ./...
templ fmt .
lint:
go mod tidy
golangci-lint run
test:
go test ./...
reset:
dbmate rollback
dbmate migrate
sqlc generate
psql:
psql ${DATABASE_URL}