-
Notifications
You must be signed in to change notification settings - Fork 0
/
Taskfile.yaml
51 lines (44 loc) · 1.01 KB
/
Taskfile.yaml
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
version: "3"
dotenv:
- .env
- .env.local
env:
PORT: 8080
vars:
container_name: app
container_tag: latest
tasks:
dev:
run: always
cmds:
- air
build:
deps:
- task: generate
cmds:
- CGO_ENABLED=0 go build -o build/server ./src/main.go
container:
deps:
- task: generate
cmds:
- docker build -t {{.container_name}}:{{.container_tag}} .
generate:
aliases:
- gen
- g
generates:
- src/templates/**/*.go
- src/views/**/*.go
- src/static/dist/**/*.css
- src/static/dist/**/*.js
sources:
- src/templates/**/*.templ
- src/views/**/*.templ
- tailwind.config.js
- src/styles/css/global.css
- src/static/js/**/*.js
cmds:
- bunx tailwindcss build -i ./src/static/css/global.css -o ./src/static/dist/style.css
- bun build src/static/js/index.js --outfile=src/static/dist/bundle.js --minify
- go run github.com/a-h/templ/cmd/templ@latest generate
- go generate ./src/...