Skip to content

[release/13.4] Make npm package README TypeScript-only and document standalone dashboard#18221

Draft
adamint wants to merge 2 commits into
microsoft:release/13.4from
adamint:adamint/npm-readme-ts-dashboard-13.4
Draft

[release/13.4] Make npm package README TypeScript-only and document standalone dashboard#18221
adamint wants to merge 2 commits into
microsoft:release/13.4from
adamint:adamint/npm-readme-ts-dashboard-13.4

Conversation

@adamint

@adamint adamint commented Jun 15, 2026

Copy link
Copy Markdown
Member

Description

Port of #18220 to release/13.4.

Updates the Aspire CLI npm package README (eng/scripts/pack-cli-npm-package.pointer.README.md) to be TypeScript-only and to document the standalone dashboard.

Changes

  • Remove the C# AppHost example. The npm package targets the TypeScript/JavaScript AppHost workflow, so the README now shows only TypeScript.
  • Refresh the TypeScript example. The 13.4 README example was stale — it referenced apphost.ts and ./.aspire/modules/aspire.js, but the actual 13.4 ts-starter template already uses apphost.mts importing ./.aspire/modules/aspire.mjs. This change brings the README in line with the template (matching main).
  • Add a backing-services example (Postgres + Redis) with a note that addPostgres/addRedis become available after aspire add postgresql and aspire add redis.
  • Document the standalone dashboard with the one-line aspire dashboard run command and its OTLP endpoints/options.
  • Update NpmCliPackageTests to assert the TypeScript-only README content.

Verification

  • The TypeScript examples were proven to compile against the real Aspire TypeScript codegen (AtsCapabilityScanner + AtsTypeScriptCodeGenerator) and tsc --noEmit (strict NodeNext) on the same release line; example 1 is byte-identical to the 13.4 ts-starter template.
  • aspire dashboard run is provided by DashboardRunCommand on 13.4 with the documented options/defaults.
  • NpmCliPackageTests.PackScriptGeneratesPointerPackageMetadataMapAndReadme passes locally.

Draft until CI is green.

…oard

Port of microsoft#18220 to release/13.4.

- Remove the C# AppHost example so the npm README is TypeScript-only.
- Refresh the TypeScript example to the current ts-starter template
  (apphost.mts importing ./.aspire/modules/aspire.mjs), fixing the stale
  apphost.ts / aspire.js references that no longer match the template.
- Add a Postgres + Redis backing-services example with an `aspire add`
  note for the postgresql and redis integrations.
- Add a Standalone dashboard section documenting `aspire dashboard run`.
- Update NpmCliPackageTests to assert the TypeScript-only README content.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings June 15, 2026 21:38
@github-actions

github-actions Bot commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

🚀 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/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 18221

Or

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

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This is a backport of PR #18220 to release/13.4. It rewrites the Aspire CLI npm package README to be TypeScript-only (removing the C# AppHost example), refreshes the TypeScript example to match the actual ts-starter template (apphost.mts importing .mjs), adds a backing-services example and standalone dashboard documentation, and updates tests to assert the new content.

Changes:

  • Replace the dual C#/TypeScript README example with a single TypeScript example matching the ts-starter template, plus a second example showing Postgres/Redis backing services.
  • Add a "Standalone dashboard" section documenting aspire dashboard run and its options.
  • Update NpmCliPackageTests with assertions confirming TypeScript-only content and absence of C#/stale references.
Show a summary per file
File Description
eng/scripts/pack-cli-npm-package.pointer.README.md Rewrites README to TypeScript-only examples, adds backing-services and standalone dashboard sections
tests/Infrastructure.Tests/Pipelines/NpmCliPackageTests.cs Adds positive and negative assertions for new README content

Copilot's findings

  • Files reviewed: 2/2 changed files
  • Comments generated: 1

Comment on lines +69 to 71
`addPostgres` and `addRedis` become available once the matching integrations are installed with `aspire add postgresql` and `aspire add redis`.

This package requires Node.js 20 or later.
Code review found the install instructions were orphaned under the
'Add backing services' subsection after the C# example removal. Restore
the '## Install' heading so install steps render as their own section.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions

Copy link
Copy Markdown
Contributor

Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt.

@github-actions

Copy link
Copy Markdown
Contributor

Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt.

@github-actions

Copy link
Copy Markdown
Contributor

Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt.

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