-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·58 lines (49 loc) · 1.62 KB
/
setup.sh
File metadata and controls
executable file
·58 lines (49 loc) · 1.62 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
# Litepie Repository Package Setup Script
# This script helps you get started with the package development
echo "🚀 Setting up Litepie Repository Package..."
# Check if composer is installed
if ! command -v composer &> /dev/null; then
echo "❌ Composer is not installed. Please install Composer first."
exit 1
fi
# Install dependencies
echo "📦 Installing dependencies..."
composer install --prefer-dist --no-interaction
# Create necessary directories if they don't exist
echo "📁 Creating directories..."
mkdir -p tests/Unit
mkdir -p tests/Feature
mkdir -p stubs
mkdir -p config
# Set up git hooks (optional)
if [ -d ".git" ]; then
echo "🔧 Setting up git hooks..."
# You can add pre-commit hooks here
fi
# Make sure the package is properly configured
echo "⚙️ Checking configuration..."
# Run tests to ensure everything is working
echo "🧪 Running tests..."
if composer test; then
echo "✅ All tests passed!"
else
echo "❌ Some tests failed. Please check the output above."
fi
echo ""
echo "🎉 Setup complete!"
echo ""
echo "Next steps:"
echo "1. Update composer.json with your package details"
echo "2. Customize the configuration in config/repository.php"
echo "3. Write your repository implementations"
echo "4. Add tests for your custom functionality"
echo "5. Update README.md with your specific documentation"
echo ""
echo "Available commands:"
echo "- composer test # Run tests"
echo "- composer test-coverage # Run tests with coverage"
echo "- composer format # Format code"
echo "- composer analyze # Run static analysis"
echo ""
echo "Happy coding! 🎯"