Skip to content

[release/13.0] Refactor NodeJs Integration#12559

Merged
eerhardt merged 7 commits intorelease/13.0from
backport/pr-12530-to-release/13.0
Oct 31, 2025
Merged

[release/13.0] Refactor NodeJs Integration#12559
eerhardt merged 7 commits intorelease/13.0from
backport/pr-12530-to-release/13.0

Conversation

@github-actions
Copy link
Contributor

@github-actions github-actions bot commented Oct 31, 2025

Backport of #12530 to release/13.0

/cc @eerhardt

Customer Impact

We have updated the NodeJs integration in 13, but it doesn't currently conform to the API design we want long term. Need to update the API in 13 so we don't need to make breaking changes in the future.

Testing

Manually tested the new py-starter template. Plus playground apps. Also added new unit tests.

Risk

Low for most of Aspire as this mostly affects NodeJs. But for NodeJs apps this is a large change since we are obsoleting the old APIs.

Regression?

No

eerhardt and others added 7 commits October 31, 2025 11:17
- Obsolete AddNpmApp.
- Add JavaScriptAppResource and AddJavaScriptApp extension method
- Refactor AddViteApp to be a specialization of AddJavaScriptApp
- Replace NodeInstallerResource with JavaScriptInstallerResource
- Add JavaScriptPackageManagerAnnotation to handle different package managers
- Replace JavaScriptRunCommandAnnotation with JavaScriptRunScriptAnnotation
- Replace JavaScriptBuildCommandAnnotation with JavaScriptBuildScriptAnnotation

Contributes to #8350
Clarified npm install command requirement for clean install.
@github-actions
Copy link
Contributor Author

🚀 Dogfood this PR with:

⚠️ WARNING: Do not do this without first carefully reviewing the code of this PR to satisfy yourself it is safe.

curl -fsSL https://raw.githubusercontent.com/dotnet/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 12559

Or

  • Run remotely in PowerShell:
iex "& { $(irm https://raw.githubusercontent.com/dotnet/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 12559"

@eerhardt eerhardt added the Servicing-consider Issue for next servicing release review label Oct 31, 2025
@eerhardt eerhardt merged commit 218a52b into release/13.0 Oct 31, 2025
296 checks passed
@eerhardt eerhardt deleted the backport/pr-12530-to-release/13.0 branch October 31, 2025 17:04
@github-actions github-actions bot locked and limited conversation to collaborators Dec 1, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Re-opened Github-Action PR Servicing-consider Issue for next servicing release review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants