-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathinstall-dep-local.sh
More file actions
executable file
·68 lines (58 loc) · 2.17 KB
/
install-dep-local.sh
File metadata and controls
executable file
·68 lines (58 loc) · 2.17 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#!/bin/bash
# Script to install dependencies for flo_ai, wavefront/server (using uv) and wavefront/client (using pnpm)
set -e # Exit on error
# Colors for output
GREEN='\033[0;32m'
BLUE='\033[0;34m'
YELLOW='\033[1;33m'
NC='\033[0m' # No Color
echo -e "${BLUE}Installing dependencies for all projects...${NC}\n"
# Get the script directory
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
cd "$SCRIPT_DIR"
# 1. Install pre-commit using uv in the root and run pre-commit install
echo -e "${YELLOW}[1/4] Installing pre-commit using uv...${NC}"
if command -v uv &> /dev/null; then
uv pip install pre-commit --system
echo -e "${GREEN}✓ pre-commit installed successfully${NC}"
echo -e "${YELLOW}Running pre-commit install...${NC}"
uv run pre-commit install
echo -e "${GREEN}✓ pre-commit hooks installed successfully${NC}\n"
else
echo -e "${YELLOW}Warning: uv not found. Please install uv first.${NC}\n"
exit 1
fi
# 2. Install dependencies for flo_ai using uv
echo -e "${YELLOW}[2/4] Installing dependencies for flo_ai using uv...${NC}"
cd flo_ai
if command -v uv &> /dev/null; then
uv sync
echo -e "${GREEN}✓ flo_ai dependencies installed successfully${NC}\n"
else
echo -e "${YELLOW}Warning: uv not found. Please install uv first.${NC}\n"
exit 1
fi
cd ..
# 3. Install dependencies for wavefront/server using uv
echo -e "${YELLOW}[3/4] Installing dependencies for wavefront/server using uv...${NC}"
cd wavefront/server
if command -v uv &> /dev/null; then
uv sync --all-packages
echo -e "${GREEN}✓ wavefront/server dependencies installed successfully${NC}\n"
else
echo -e "${YELLOW}Warning: uv not found. Please install uv first.${NC}\n"
exit 1
fi
cd ../..
# 4. Install dependencies for wavefront/client using pnpm
echo -e "${YELLOW}[4/4] Installing dependencies for wavefront/client using pnpm...${NC}"
cd wavefront/client
if command -v pnpm &> /dev/null; then
pnpm install
echo -e "${GREEN}✓ wavefront/client dependencies installed successfully${NC}\n"
else
echo -e "${YELLOW}Warning: pnpm not found. Please install pnpm first.${NC}\n"
exit 1
fi
cd ../..
echo -e "${GREEN}All dependencies installed successfully!${NC}"