Skip to content

feat(sv): add sv addon to scaffold layerchart demos#809

Open
jycouet wants to merge 4 commits intotechniq:nextfrom
jycouet:feat/sv
Open

feat(sv): add sv addon to scaffold layerchart demos#809
jycouet wants to merge 4 commits intotechniq:nextfrom
jycouet:feat/sv

Conversation

@jycouet
Copy link
Copy Markdown
Contributor

@jycouet jycouet commented Mar 31, 2026

Summary

  • Adds @layerchart/sv addon that fetches demo examples from GitHub and scaffolds them into the user's SvelteKit project
  • Auto-detects and installs dependencies (layerchart@next) from example imports
  • Defaults to components/ArcChart/gradient-with-text when no demo is specified
  • Adds "sv add" copy-to-clipboard button next to the "Edit" button in the docs Example component

Usage

npx sv add @layerchart/sv
# or with a specific demo
npx sv add @layerchart/sv=demo:components/ArcChart/gradient-with-text

Test plan

  • pnpm test passes in packages/sv
  • Verify "sv add" button appears on example pages and copies the correct command
  • Run pnpm demo-create && pnpm demo-add:ci in packages/sv to verify end-to-end scaffolding

jycouet added 3 commits March 31, 2026 21:45
- Addon fetches demo examples from GitHub and scaffolds them into user's SvelteKit project
- Auto-detects and installs dependencies from imports
- Defaults to components/ArcChart/gradient-with-text demo
- Adds "sv add" copy button to docs Example component
@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Mar 31, 2026

⚠️ No Changeset found

Latest commit: e81205a

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 31, 2026

built with Refined Cloudflare Pages Action

⚡ Cloudflare Pages Deployment

Name Status Preview Last Commit
layerchart ✅ Ready (View Log) Visit Preview e81205a

@github-actions github-actions bot requested a deployment to Preview March 31, 2026 20:13 Abandoned
@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Mar 31, 2026

Open in StackBlitz

npm i https://pkg.pr.new/techniq/layerchart@809
npm i https://pkg.pr.new/techniq/layerchart/@layerchart/sv@809

commit: e81205a

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