-
Notifications
You must be signed in to change notification settings - Fork 56
Expand file tree
/
Copy pathinstall-all-templates.sh
More file actions
58 lines (48 loc) ยท 1.63 KB
/
install-all-templates.sh
File metadata and controls
58 lines (48 loc) ยท 1.63 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
#!/bin/bash
echo "๐ Installing dependencies for all template apps..."
echo ""
# Array of template directories
TEMPLATES=(
"template-app-GAMEJAM-TRACK/nextjs-app"
"template-app-SOUNDWAVE-TRACK/nextjs-app"
"template-app-TEXTSTREAM-TRACK/nextjs-app"
"template-app-VISION-TRACK/nextjs-app"
)
# Function to install dependencies for a template
install_template() {
local template_dir=$1
local template_name=$(echo $template_dir | cut -d'/' -f1 | sed 's/template-app-//')
echo "๐ฆ Installing $template_name template..."
if [ -d "$template_dir" ]; then
cd "$template_dir"
if [ -f "package.json" ]; then
npm install
if [ $? -eq 0 ]; then
echo "โ
$template_name template installed successfully!"
else
echo "โ Failed to install $template_name template"
fi
else
echo "โ ๏ธ No package.json found in $template_dir"
fi
cd - > /dev/null
else
echo "โ ๏ธ Directory $template_dir not found"
fi
echo ""
}
# Install dependencies for each template
for template in "${TEMPLATES[@]}"; do
install_template "$template"
done
echo "๐ Installation complete!"
echo ""
echo "To run a specific template:"
echo " cd template-app-[TRACK-NAME]/nextjs-app"
echo " npm run dev"
echo ""
echo "Available templates:"
echo " ๐ฎ GAMEJAM-TRACK - Game development template"
echo " ๐ต SOUNDWAVE-TRACK - Audio and voice template"
echo " ๐ฌ TEXTSTREAM-TRACK - Chat and text streaming template"
echo " ๐๏ธ VISION-TRACK - Computer vision template"