Skip to content

Commit

Permalink
Update install.ps1.
Browse files Browse the repository at this point in the history
  • Loading branch information
gitauto-ai[bot] authored Sep 14, 2024
1 parent 5ba79e7 commit ec4c9ec
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions install.ps1
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."

0 comments on commit ec4c9ec

Please sign in to comment.