Skip to content

feat(cli): add svelte template support via sv cli#982

Merged
fengmk2 merged 6 commits intovoidzero-dev:mainfrom
mudiageo:feat/add-svelte-to-create
Mar 17, 2026
Merged

feat(cli): add svelte template support via sv cli#982
fengmk2 merged 6 commits intovoidzero-dev:mainfrom
mudiageo:feat/add-svelte-to-create

Conversation

@mudiageo
Copy link
Contributor

@mudiageo mudiageo commented Mar 17, 2026

Description

This PR adds support for Svelte projects using the official sv CLI. Previously, vp create svelte would attempt to use the discontinuedcreate-svelte package. Closes #857

Changes:

  • Mapping: Updated discovery.ts to map the svelte shorthand template name to the sv package.
  • Command Handling: Updated remote.ts to automatically prepend the create subcommand if omitted and add necessary flags:
    • --no-install: To let Vite+ handle dependency installation.
  • Documentation: Added svelte to the CLI help examples and the vp create --list popular templates section.

Type of Change

  • New feature (non-breaking change which adds functionality)

@netlify
Copy link

netlify bot commented Mar 17, 2026

Deploy Preview for viteplus-preview canceled.

Name Link
🔨 Latest commit 56a8b5a
🔍 Latest deploy log https://app.netlify.com/projects/viteplus-preview/deploys/69b8e6aedbef4d00093ce6ca

@mudiageo mudiageo force-pushed the feat/add-svelte-to-create branch from 2b5f0ec to 62b8958 Compare March 17, 2026 01:55
@mudiageo mudiageo force-pushed the feat/add-svelte-to-create branch from 62b8958 to c4ee912 Compare March 17, 2026 02:17
@fengmk2 fengmk2 self-requested a review March 17, 2026 03:51
Copy link
Member

@fengmk2 fengmk2 left a comment

Choose a reason for hiding this comment

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

Thank you for the contribution. I will take over updating the snap tests and then merge.

@fengmk2 fengmk2 self-assigned this Mar 17, 2026
@fengmk2 fengmk2 merged commit 1c7139e into voidzero-dev:main Mar 17, 2026
22 checks passed
@fengmk2 fengmk2 mentioned this pull request Mar 18, 2026
3 tasks
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.

Svelte template for vp create

2 participants