-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ec4c9ec
commit 5229a25
Showing
1 changed file
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
#!/bin/bash | ||
|
||
echo "Enter the project name:" | ||
read project_name | ||
|
||
echo "Enter the default namespace:" | ||
read namespace | ||
|
||
echo "Enter the SonarCloud URL:" | ||
read sonarcloud_url | ||
|
||
echo "Enter the HealthChecks.io ID:" | ||
read healthchecks_id | ||
|
||
echo "Setting up project: $project_name" | ||
|
||
# Update .wakatime and README.md | ||
sed -i "s/TemplateProject/$project_name/g" .wakatime-project | ||
sed -i "s/TemplateProject/$project_name/g" README.md | ||
|
||
# Update composer.json | ||
sed -i "s/TemplateNamespace/$namespace/g" composer.json | ||
|
||
# Update Healthchecks.io badge | ||
echo "Please create a HealthChecks.io account if needed." | ||
sed -i "s/HealthChecksId/$healthchecks_id/g" README.md | ||
|
||
# Update SonarCloud URL | ||
sed -i "s|SonarCloudUrl|$sonarcloud_url|g" README.md | ||
|
||
# Run composer install | ||
echo "Running composer install..." | ||
composer install | ||
|
||
echo "Project setup complete." | ||
|
||
# Additional PHP setup tasks | ||
echo "Performing additional PHP setup tasks..." | ||
# Add any additional setup commands here | ||
|
||
echo "Setup finished successfully." |