-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdevbox.json
More file actions
52 lines (52 loc) · 1.46 KB
/
devbox.json
File metadata and controls
52 lines (52 loc) · 1.46 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
50
51
52
{
"packages": [
"nodejs@20",
"python@3.11",
"git",
"curl",
"jq",
"docker",
"kubectl",
"terraform",
"teller",
"nushell",
"uv"
],
"shell": {
"init_hook": [
"echo 'Welcome to UAP Development Environment'",
"echo 'Node.js version:' && node --version",
"echo 'Python version:' && python --version",
"echo 'Available commands: uap-agent-status, uap-deploy-agent, etc.'",
"export UAP_ENV=development",
"export PATH=$PWD/scripts:$PATH",
"if [ -f frontend/package.json ]; then cd frontend && npm install && cd ..; fi",
"if [ -f backend/requirements.txt ]; then cd backend && pip install -r requirements.txt && cd ..; fi"
],
"scripts": {
"dev": [
"echo 'Starting UAP development servers...'",
"teller run -- concurrently \"npm --prefix frontend run dev\" \"python -m uvicorn backend.main:app --reload --host 0.0.0.0\""
],
"build": [
"echo 'Building UAP for production...'",
"npm --prefix frontend run build",
"cd backend && python -m build"
],
"test": [
"echo 'Running UAP test suite...'",
"npm --prefix frontend test",
"cd backend && pytest"
],
"deploy": [
"echo 'Deploying UAP to cloud...'",
"teller run -- skypilot up -c skypilot/uap-production.yaml"
]
}
},
"env": {
"UAP_VERSION": "3.0.0",
"NODE_ENV": "development",
"PYTHONPATH": "./backend"
}
}