-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
49 lines (43 loc) · 1.22 KB
/
Taskfile.yml
File metadata and controls
49 lines (43 loc) · 1.22 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
version: "3"
# yaml-language-server: $schema=https://taskfile.dev/schema.json
output: prefixed
tasks:
watch-frontend:
desc: Start the frontend development server
dir: frontend
cmds:
- cmd: kill -9 $(lsof -t -i:5173)
ignore_error: true
- pnpm install
- pnpm run dev
- cmd: kill -9 $(lsof -t -i:5173)
ignore_error: true
watch-backend:
desc: Start the backend development server with live reload
dir: backend-go
cmds:
- cmd: kill -9 $(lsof -t -i:3001)
ignore_error: true
- air
- cmd: kill -9 $(lsof -t -i:3001)
ignore_error: true
install:
desc: Install the dependencies
cmds:
- pnpm install -r
- |
find . -name "go.mod" -type f | grep -v "/vendor/" | while read -r modfile; do
dir=$(dirname "$modfile")
echo "Installing in $dir"
(cd "$dir" && go mod download)
done
update:
desc: Update the dependencies
cmds:
- pnpm update -r
- |
find . -name "go.mod" -type f | grep -v "/vendor/" | while read -r modfile; do
dir=$(dirname "$modfile")
echo "Updating in $dir"
(cd "$dir" && go get -u ./... && go mod tidy)
done