Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ composer.phar

/.idea
/.vscode
/projects

# Laravel Exclude
#
Expand Down
15 changes: 15 additions & 0 deletions bin/checkout_latest_projects.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash

PROJECTS=(
api
)

for p in "${PROJECTS[@]}"; do
if [ -d "projects/$p" ]; then
echo "Pulling latest projects updates for $p..."
(cd "projects/$p" && git pull)
else
echo "Cloning $p..."
git clone --single-branch --branch main "https://github.com/laravelcm/$p" "projects/$p"
fi;
done
10 changes: 10 additions & 0 deletions bin/setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash

if [ ! -f composer.json ]; then
echo "Please make sure to run this script from the root directory of this repo."
exit 1
fi

composer install
composer setup
source "$(dirname "$0")/checkout_latest_projects.sh"
9 changes: 9 additions & 0 deletions bin/update.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash

if [ ! -f composer.json ]; then
echo "Please make sure to run this script from the root directory of this repo."
exit 1
fi

composer install
source "$(dirname "$0")/checkout_latest_projects.sh"
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@
"psr-4": {
"App\\": "app/",
"Database\\Factories\\": "database/factories/",
"Database\\Seeders\\": "database/seeders/"
"Database\\Seeders\\": "database/seeders/",
"Domain\\": "src/Domain"
}
},
"autoload-dev": {
Expand Down Expand Up @@ -119,7 +120,6 @@
"php -r \"file_exists('.env') || copy('.env.example', '.env');\"",
"php artisan key:generate",
"php artisan migrate",
"php artisan rinvex:migrate:subscriptions",
"php artisan db:seed",
"php artisan lcm:admin"
]
Expand Down
File renamed without changes.
Empty file added src/Domain/Forum/.gitkeep
Empty file.
Empty file added src/Domain/Job/.gitkeep
Empty file.
Empty file added src/Domain/Profile/.gitkeep
Empty file.
Empty file added src/Domain/Sponsor/.gitkeep
Empty file.
Empty file.