-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathTaskfile.yml
More file actions
36 lines (29 loc) · 867 Bytes
/
Taskfile.yml
File metadata and controls
36 lines (29 loc) · 867 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
32
33
34
35
36
version: '3'
tasks:
templ:
desc: Generate templ files and watch for changes
cmds:
- templ generate --watch --proxy="http://localhost:8080"
tailwind:
desc: Watch and compile Tailwind CSS
cmds:
- tailwindcss -i ./tailwind.css -o ./static/style/styles.css --watch --silent
air:
desc: Run the application with air for hot reloading
cmds:
- air -c config/.air.toml
dev:
desc: Run development environment (templ and air concurrently)
deps: [air, templ]
kill:
desc: Kill processes on ports 8080 and 7331 (Linux only)
cmds:
- fuser -k 8080/tcp && fuser -k 7331/tcp
compile:
desc: Compile the CSS and build the Go application
cmds:
- tailwindcss -i ./tailwind.css -o ./static/style/styles.css
- go build -o app .
build:
desc: Build the application
deps: [compile]