feat(create-rstack): add Svelte app templates - #255
Conversation
Deploying rstack-cli with
|
| 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 |
There was a problem hiding this comment.
💡 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", |
There was a problem hiding this comment.
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 👍 / 👎.
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-preprocessinstall script for pnpm 11 compatibility.