-
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
5ba79e7
commit ec4c9ec
Showing
1 changed file
with
34 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,34 @@ | ||
Param( | ||
[string]$ProjectName, | ||
[string]$Namespace, | ||
[string]$SonarCloudUrl, | ||
[string]$HealthChecksId | ||
) | ||
|
||
Write-Host "Setting up project: $ProjectName" | ||
|
||
# Update .wakatime and README.md | ||
(Get-Content .wakatime-project) -replace 'TemplateProject', $ProjectName | Set-Content .wakatime-project | ||
(Get-Content README.md) -replace 'TemplateProject', $ProjectName | Set-Content README.md | ||
|
||
# Update composer.json | ||
(Get-Content composer.json) -replace 'TemplateNamespace', $Namespace | Set-Content composer.json | ||
|
||
# Update Healthchecks.io badge | ||
Write-Host "Please create a HealthChecks.io account if needed." | ||
(Get-Content README.md) -replace 'HealthChecksId', $HealthChecksId | Set-Content README.md | ||
|
||
# Update SonarCloud URL | ||
(Get-Content README.md) -replace 'SonarCloudUrl', $SonarCloudUrl | Set-Content README.md | ||
|
||
# Run composer install | ||
Write-Host "Running composer install..." | ||
composer install | ||
|
||
Write-Host "Project setup complete." | ||
|
||
# Additional PHP setup tasks | ||
Write-Host "Performing additional PHP setup tasks..." | ||
# Add any additional setup commands here | ||
|
||
Write-Host "Setup finished successfully." |