forked from livekit-examples/voice-assistant-frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtaskfile.yaml
79 lines (68 loc) · 1.87 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
version: "3"
output: interleaved
dotenv:
- "frontend/.env.local"
- "agent/.env.local"
tasks:
post_create:
desc: "Runs after this template is instantiated as a Sandbox or Bootstrap"
cmds:
- task: post_create_sandbox
- task: post_create_frontend
post_create_sandbox:
silent: true
cmds:
- echo -e "To setup and run the agent:\n"
- echo -e " cd {{.ROOT_DIR}}/agent"
- echo -e " python3 -m venv venv"
- platforms: [darwin, linux]
cmd: echo -e " source venv/bin/activate"
- platforms: [windows]
cmd: echo -e " powershell venv/Scripts/Activate.ps1"
- echo -e " python3 -m pip install -r requirements.txt"
- echo -e " python3 agent.py start\n"
post_create_frontend:
silent: true
cmds:
- echo -e "To setup and run the frontend:\n"
- echo -e " cd {{.USER_WORKING_DIR}}/frontend"
- echo -e " pnpm install"
- echo -e " pnpm dev\n"
install:
desc: "Bootstrap application for local development"
deps:
- install_sandbox
- install_frontend
install_sandbox:
dir: "agent"
cmds:
- "python3 -m venv venv"
- platforms: [darwin, linux]
cmd: "source venv/bin/activate"
- platforms: [windows]
cmd: "powershell venv/Scripts/Activate.ps1"
- "python3 -m pip install -r requirements.txt"
install_frontend:
dir: "frontend"
interactive: true
cmds:
- "pnpm install"
dev:
interactive: true
deps:
- dev_sandbox
- dev_frontend
dev_sandbox:
dir: "agent"
interactive: true
cmds:
- platforms: [darwin, linux]
cmd: "source venv/bin/activate"
- platforms: [windows]
cmd: "powershell venv/Scripts/Activate.ps1"
- "python3 agent.py start"
dev_frontend:
dir: "frontend"
interactive: true
cmds:
- "pnpm dev"