Skip to content

Commit ec0b5c4

Browse files
feat(junie): added install-dependencies.sh script
1 parent 66b51f0 commit ec0b5c4

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/bin/bash
2+
3+
if [ -f "composer.json" ]; then
4+
echo "Found composer.json in project root. Installing dependencies..."
5+
composer install --no-interaction --ignore-platform-reqs
6+
echo "✅ PHP dependencies installed successfully in project root."
7+
else
8+
echo "⚠️ No composer.json in project root. Searching for composer.json files in subdirectories..."
9+
10+
find . -type f -name "composer.json" | while read composer_file; do
11+
dir=$(dirname "$composer_file")
12+
echo "Installing dependencies in $dir..."
13+
(cd "$dir" && composer install --no-interaction --ignore-platform-reqs)
14+
if [ $? -eq 0 ]; then
15+
echo "✅ Dependencies installed successfully in $dir."
16+
else
17+
echo "❌ Failed to install dependencies in $dir."
18+
fi
19+
done
20+
fi

0 commit comments

Comments
 (0)