Skip to content

Conversation

@aaronpowell
Copy link
Member

This pull request introduces several changes to the CommunityToolkit.Aspire project, including the addition of a new project CommunityToolkit.Aspire.Hosting.Azure.StaticWebApps, changes to the solution file, and the addition of tests for the new project. The changes also include the creation of new classes and methods within the new project and modifications to the Directory.Packages.props and tests/CommunityToolkit.Aspire.Java.Hosting.EndToEndTests/CommunityToolkit.Aspire.Java.Hosting.EndToEndTests.csproj files.

Project and Solution Changes:

  • CommunityToolkit.Aspire.sln: Added a new project CommunityToolkit.Aspire.Hosting.Azure.StaticWebApps and its corresponding tests project CommunityToolkit.Aspire.Hosting.Azure.StaticWebApps.Tests. Also, the path of the CommunityToolkit.Aspire.Java.Hosting.EndToEndTests project has been updated. [1] [2]

New Project and Code Additions:

Test Additions:

File Modifications:

@aaronpowell aaronpowell marked this pull request as draft July 16, 2024 05:49
@aaronpowell aaronpowell self-assigned this Jul 16, 2024
@aaronpowell aaronpowell marked this pull request as ready for review July 19, 2024 01:14
@aaronpowell aaronpowell merged commit 11d4e06 into main Aug 19, 2024
@aaronpowell aaronpowell deleted the swa-component branch August 19, 2024 06:30
aaronpowell added a commit that referenced this pull request May 23, 2025
Update project references and improve app setup

- Added project reference for `CommunityToolkit.Aspire.Hosting.NodeJS.Extensions.csproj` in `CommunityToolkit.Aspire.StaticWebApps.AppHost.csproj`.
- Changed web app setup in `Program.cs` from `.AddNpmApp` to `.AddViteApp` with `.WithNpmPackageInstallation()`.
- Modified `Port` property in `SwaResourceOptions.cs` to use a random port between 4280 and 5280.
- Updated tests in `SwaHostingComponentTests.cs` to utilize `CancellationToken` for better control over async operations.

Related Work Items: #6, #677
@aaronpowell aaronpowell mentioned this pull request May 23, 2025
10 tasks
aaronpowell added a commit that referenced this pull request May 24, 2025
* Fixes #677

Update project references and improve app setup

- Added project reference for `CommunityToolkit.Aspire.Hosting.NodeJS.Extensions.csproj` in `CommunityToolkit.Aspire.StaticWebApps.AppHost.csproj`.
- Changed web app setup in `Program.cs` from `.AddNpmApp` to `.AddViteApp` with `.WithNpmPackageInstallation()`.
- Modified `Port` property in `SwaResourceOptions.cs` to use a random port between 4280 and 5280.
- Updated tests in `SwaHostingComponentTests.cs` to utilize `CancellationToken` for better control over async operations.

Related Work Items: #6, #677

* reverting port change and disabling tests

* Deprecating the SWA emulator integration

Contributes to #698

* Updating readmie

* forcing the dev certs install for SWA

* Revert "forcing the dev certs install for SWA"

This reverts commit 15475a6.

* Commenting out the tests completely

This precents the test app host from actually starting up
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants