-
-
Notifications
You must be signed in to change notification settings - Fork 54
Feat - Community add-on #684
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
commit: |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
First of, thanks for making the effort and putting everything together. I made some really minor changes to the PR description (such as linking issues / prs)
A/ distribute community add-on
I love a). Not sure why didn't had the idea earlier, but this seems to be a pretty clean way.
B/ publish @sveltejs/cli-core
There were some concerns (I think from Ben and Rich) if this is really necessary. There was a thought about maybe re-exporting this from sv
and only publishing sv
(as we do now)
C/ Check Windows
Yes. Windows....
D/ create & add & --community flag
I do think this one of the important parts. Especially if you think what i.e. mdsvex
should put in the docs for creating / adding that tool.
E/ Loading community adders & cli-core version
This is another discussed topic. Currently we are basically downloading and extracting community addons by hand (thus the two dependency requirement: sv
and @sveltejs/cli-core
I think), so that we don't need to bother ourselves about installing further deps.
In the past we discussed if community addons should be self-executing. So should @storybook/sv
directly execute prompts? But we decided against it, as the core addons would become out of date to easily.
Considering that those two points are both non-optimal, is there another way we should consider?
Further thoughts
- Considering that we are more and more becoming a library, we should re-consider #80 (svelte motive: TS for apps, JS for libs). Ben was hoping that nodes strip types feature could help us out here, but I did not have the ability to check it
- Another thing that has come up in the past is the style guide. As long as our public stuff aligns (which i think it should) we can do this at a later point
Let's draft something, and add notes... along the way.
Link with: #184
First thing first, I managed to have a local community add-on up and running locally 🎉

So, a lot of things are already in place, we "just" need to tweak and allign things.
Todo...
A/ distribute community add-on
sv
can scaffold a lot of things... Why going throughdegit
when we could have it in sv itself, and do something like:workspace:*
deps would be easier to overcomeB/ publish
@sveltejs/cli-core
pkg.pr.new
only as "beta" ?esrap
#620parse
&print
fromsvelte/compiler
#568C/ Check Windows
D/
create
&add
&--community flag
--community
flag #84npx sv@latest add @supabase
could install@supabase/sv
sv-[PACKAGE_NAME]
, similar tocreate-[PACKAGE_NAME]
npm:
prefix. (file:
is also really nice for testing purposes)npx sv@latest add vitest @supabase
create
&add
as separate cmd for now (not part of this effort)file:
is quite usefull for local testingE/ Loading community adders & cli-core version
@sveltejs/cli-core
#55tar-fs
#577) or some alternativeF/ Check for
TODO JYC
addon
project type: ts / JSDoc / nonecommunity-addons
folder ?=> Let's see what to do there.
My steps for now