Skip to content

feat(web-platform): CLI, scaffolding & docs for building Sparkling apps on web [stack 6/6] - #13

Open
Huxpro wants to merge 1 commit into
stack/5-website-mpa-previewsfrom
stack/6-web-platform-cli
Open

feat(web-platform): CLI, scaffolding & docs for building Sparkling apps on web [stack 6/6]#13
Huxpro wants to merge 1 commit into
stack/5-website-mpa-previewsfrom
stack/6-web-platform-cli

Conversation

@Huxpro

@Huxpro Huxpro commented Jul 13, 2026

Copy link
Copy Markdown
Owner

Stacked PR 6/6 — base: stack/5-website-mpa-previews (#12). Top of the stack; its tip is byte-identical to the combined branch. Independent of the router work (from the experimental Web-support track) — placed last so the shim/router PRs review first.

Summary

Enables building/running/previewing Sparkling apps on the web via the CLI, on top of the web method bridge already on main.

Related issues

The CLI/scaffolding half of the experimental Web support (companion to the web method bridge merged in #7).

Changes

  • sparkling-app-cli: run:web, a --platform web|native|all flag on build/dev, web checks in doctor, and web autolink (generates web-autolink imports from each module.config.json web entry).
  • create-sparkling-app: opt-in web platform scaffolding (askWebPlatform).
  • docs: Web Platform guide, Web Method Implementations, Limitations; CLI + getting-started + APIs updated for web; website sidebar Web Platform section.
  • template / playground web build scripts; sparkling-media declares its web entry for autolink.

How to test

pnpm --filter sparkling-app-cli build
# in an app: sparkling-app-cli run:web ; sparkling-app-cli build --platform web

Checklist

  • I read CONTRIBUTING.md.
  • I linked a related issue (or explained why this is standalone).
  • I ran relevant checks (CLI + create-app typecheck/build).
  • I updated docs/examples.
  • Tests: covered by existing CLI suites; web additions are opt-in.

🤖 Generated with Claude Code

https://claude.ai/code/session_01ARyWgB3243gQx1exWK61Qb


Generated by Claude Code

…ps on web

Enable building/running/previewing Sparkling apps on the web via the CLI
(from the experimental Web-support work), on top of the web method bridge
already on main.

- sparkling-app-cli: `run:web`, a `--platform web|native|all` flag on
  build/dev, web checks in `doctor`, and web autolink (generates web-autolink
  imports from each module.config.json `web` entry)
- create-sparkling-app: opt-in web platform scaffolding (askWebPlatform)
- docs: Web Platform guide, Web Method Implementations, Limitations; CLI +
  getting-started + APIs updated for web; website sidebar Web Platform section
- template / playground: web build scripts; sparkling-media module.config.json
  declares its web entry for autolink

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ARyWgB3243gQx1exWK61Qb
@vercel

vercel Bot commented Jul 13, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
sparkling Ready Ready Preview, Comment Jul 13, 2026 1:20pm

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