Skip to content

feat(cli): add browser Fetch and shared Redoc assets - #1

Open
npalladium wants to merge 2 commits into
mainfrom
feat/javascript-fetch
Open

npalladium wants to merge 2 commits into
mainfrom
feat/javascript-fetch

Conversation

@npalladium

@npalladium npalladium commented Sep 14, 2026

Copy link
Copy Markdown
Owner

Summary

  • expose httpsnippet's browser javascript_fetch target through the CLI
  • add --redoc-bundle-url so split HTML docs can share one self-hosted Redoc bundle
  • declare the Git-package preparation policy: allow esbuild's required install script and deny core-js's optional postinstall
  • document and test Fetch snippets, bundle URL escaping, and conflicting Redoc options

Verification

  • mise exec node@22 -- /Users/n/Library/pnpm/pnpm verify
  • installed the CLI from the pinned Git commit and packages/cli subdirectory in a fresh PNPM project, with its workspace core overridden to the same commit
  • browser Fetch CLI generation test
  • custom Redoc bundle URL core and CLI tests

Consumer

This enables query-service PR https://github.com/zenstack-we360/query-service/pull/587 to build a committed, multi-page consumer API documentation site with cURL, Python Requests, and browser Fetch examples while serving one local Redoc asset.

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.

1 participant