-
Notifications
You must be signed in to change notification settings - Fork 0
/
Taskfile.yml
42 lines (36 loc) · 849 Bytes
/
Taskfile.yml
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
version: "3"
tasks:
install:
desc: Install dependencies
cmds:
- npm install
- go mod download
build:
desc: Build the project
cmds:
- npx tailwindcss build -i assets/css/styles.css -o assets/css/globals.css --minify
- templ generate
- go build -ldflags "-s -w" cmd/server/main.go
env:
CGO_ENABLED: 0
templ:
desc: Start templ in watch mode
cmds:
- templ generate --watch --proxy="http://localhost:5000" --proxyport=3000
tailwind:
desc: Start tailwind in watch mode
cmds:
- npx tailwindcss build -i assets/css/styles.css -o assets/css/globals.css --watch
server:
desc: Start live server
cmds:
- air
env:
PORT: 5000
dev:
desc: Start development server
run: always
deps:
- server
- tailwind
- templ