Add script to create a demo site for testing - #71
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds cross-platform scripts and documentation to scaffold a local Umbraco “demo” site that references the local Umbraco.Community.AzureSSO project, enabling easier manual testing of the SSO flow during development.
Changes:
- Added Bash and PowerShell scripts to scaffold a demo Umbraco site under
demo/, reference the library project, inject placeholderAzureSSOconfig, and generate a combined local solution. - Documented local development workflow in
README.md. - Updated
.gitignoreto exclude generated demo artifacts; minor.editorconfigcomment cleanup.
Reviewed changes
Copilot reviewed 4 out of 5 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
src/.editorconfig |
Updates header comment; (note: comment still conflicts with actual indentation setting). |
scripts/install-demo-site.sh |
New Bash script to scaffold a demo site, add project reference + config, and create a local solution. |
scripts/install-demo-site.ps1 |
New PowerShell script to scaffold a demo site, add project reference + config, and create a local solution. |
README.md |
Adds “Local development” section describing how to run the scripts and use the generated site/solution. |
.gitignore |
Ignores generated demo/ folder and *.local.slnx; minor whitespace cleanup. |
Comments suppressed due to low confidence (2)
scripts/install-demo-site.sh:186
dotnet new slnis invoked without specifying the solution format, but subsequent commands assume a.slnxfile (${SOLUTION_NAME}.slnx). Passing--format slnxmakes the script deterministic across SDK versions and avoids accidentally generating an untracked${SOLUTION_NAME}.sln.
echo "Creating unified solution..."
dotnet new sln -n "$SOLUTION_NAME" --force
dotnet sln "${SOLUTION_NAME}.slnx" add "$LIBRARY_PROJECT" --solution-folder "Library"
scripts/install-demo-site.ps1:138
dotnet new slnis invoked without specifying the solution format, but the script then operates on$SolutionName.slnx. Passing--format slnxmakes the script deterministic across SDK versions and avoids accidentally generating an untracked$SolutionName.sln.
Write-Host "Creating unified solution..." -ForegroundColor Green
dotnet new sln -n $SolutionName --force
dotnet sln "$SolutionName.slnx" add $LibraryProject --solution-folder "Library"
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Describe your changes
Add script to create a demo site for testing
Checklist before requesting a review