Skip to content

feat(create-rstack): add Svelte app templates - #255

Merged
chenjiahan merged 1 commit into
mainfrom
chenjiahan/feat-create-rstack-app-svelte
Aug 8, 2026
Merged

feat(create-rstack): add Svelte app templates#255
chenjiahan merged 1 commit into
mainfrom
chenjiahan/feat-create-rstack-app-svelte

Conversation

@chenjiahan

Copy link
Copy Markdown
Member

This PR adds Svelte application starters so create-rstack users can choose Svelte with either JavaScript or TypeScript.

Both templates include Rsbuild integration, component tests, lint and format scripts, and TypeScript checking where applicable. They also explicitly deny the informational svelte-preprocess install script for pnpm 11 compatibility.

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying rstack-cli with  Cloudflare Pages  Cloudflare Pages

Latest commit: 2f6d882
Status: ✅  Deploy successful!
Preview URL: https://081c5d46.rstack-cli.pages.dev
Branch Preview URL: https://chenjiahan-feat-create-rstac-19r1.rstack-cli.pages.dev

View logs

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 2f6d8829cf

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

"scripts": {
"build": "rs build",
"dev": "rs dev",
"format": "rs fmt",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Configure Svelte files for the formatter

When a developer runs pnpm format in either generated Svelte project, src/App.svelte is silently skipped. Rstack 0.3.5 does not register a Svelte formatter by default, and these templates neither depend on prettier-plugin-svelte nor configure it through define.fmt; because other supported files are processed, rs fmt can still exit successfully while leaving the application's main component untouched. Add and configure the Svelte Prettier plugin in both templates.

Useful? React with 👍 / 👎.

@chenjiahan
chenjiahan merged commit 22bdcfe into main Aug 8, 2026
4 checks passed
@chenjiahan
chenjiahan deleted the chenjiahan/feat-create-rstack-app-svelte branch August 8, 2026 14:18
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