-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathTaskfile.yml
More file actions
56 lines (50 loc) · 1.15 KB
/
Taskfile.yml
File metadata and controls
56 lines (50 loc) · 1.15 KB
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
51
52
53
54
55
56
version: "3"
tasks:
tailwind:
desc: Build the style.css from classes found in templ files
cmd: tailwindcss -i ./static/css/input.css -o ./static/css/style.css --minify
sources:
- ./templates/**/*.templ
generates:
- ./static/css/style.css
templ:
desc: Generate the templ files
cmd: templ generate
sources:
- ./templates/**/*.templ
generates:
- ./templates/**/*_templ.go
sqlc:
desc: Generate Go code from raw SQL
cmd: sqlc generate
sources:
- ./internal/db/queries/*.sql
generates:
- ./internal/db/generated/*.sql.go
build:
desc: Build the Go binary
cmd: go build -o ./tmp/main ./cmd/nexzap/main.go
deps:
- templ
- sqlc
- tailwind
sources:
- ./go.mod
- ./go.sum
- ./cmd/**/*.go
- ./internal/**/*.go
- ./templates/**/*_templ.go
- ./static/css/style.css
- ./internal/db/migrations/*.sql
- ./tutorials/**/*
generates:
- ./tmp/main
run:
desc: Run the built binary
deps:
- build
cmd: ./tmp/main
default:
desc: Run the full build and start the program
deps:
- run