Skip to content

docs: community addon#1018

Merged
jycouet merged 12 commits intosveltejs:mainfrom
sacrosanctic:addon-docs
Mar 31, 2026
Merged

docs: community addon#1018
jycouet merged 12 commits intosveltejs:mainfrom
sacrosanctic:addon-docs

Conversation

@sacrosanctic
Copy link
Copy Markdown
Contributor

Closes nothing

Description

Checklist

  • Update snapshots (if applicable)
  • Add a changeset (if applicable)
  • Allow maintainers to edit this PR
  • I care about what I'm doing, no matter the tool I use (Notepad, Sublime, VSCode, AI...)

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Mar 31, 2026

⚠️ No Changeset found

Latest commit: 0c3f9ee

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

@svelte-docs-bot
Copy link
Copy Markdown

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Mar 31, 2026

Open in StackBlitz

npx https://pkg.pr.new/svelte-migrate@1018
npx https://pkg.pr.new/sv@1018
npx https://pkg.pr.new/@sveltejs/sv-utils@1018

commit: 0c3f9ee

Copy link
Copy Markdown
Contributor Author

@sacrosanctic sacrosanctic left a comment

Choose a reason for hiding this comment

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

first time using the review feature, i think i figure it out now.


```sh
npx sv add [PROTOCOL][COMMUNITY_ADDON]
npx sv add [addon_package_name]
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

need clarification, the uses will see @my-org/sv, but they need to type @my-org?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is the general statement

PROTOCOL: @ or file:

# Scoped package: @org/sv
npx sv add @supacool

# Regular npm package (with or without scope)
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

what does with or without scope mean?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

In npm:

The scope name is everything between the @ and the slash


```sh
npx sv add eslint "@supacool"
npx sv add eslint @supacool
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

are the quotes required?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

On windows yes :/
On the rest no

I agree that it's way better wo the quote!
Maybe we could add "On windows do like this..." ? (But it's also kinda ungly)

```

## Add-on structure
The project has a `README.md` and `CONTRIBUTING.md` to guide you along.
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

wheres the source?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

You think we should remove the chapter?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The diff is inaccurate, the section is just renamed. I'm asking about the readme.md and contributing.md.


> [!NOTE]
> Add the `sv-add` keyword so users can discover your add-on on npm.

### Export options

Your package can export the add-on in two ways:
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

this section is confusing. what are the package names? will sv look for with /sv and without?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Hummm, not sure to understand your question. Maybe because it's not linked with the right part of the code?!

Yes, we are checking root export and /sv export

@jycouet jycouet marked this pull request as ready for review March 31, 2026 16:14
@jycouet jycouet merged commit b547e8f into sveltejs:main Mar 31, 2026
13 of 14 checks passed
@sacrosanctic sacrosanctic deleted the addon-docs branch March 31, 2026 23:17
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