-
-
Notifications
You must be signed in to change notification settings - Fork 26
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
chore: add basic svelte-add stuff #2
Conversation
d6030ed
to
b981068
Compare
other packages in the svelte org are developed with unbundled js, jsdoc and dts-buddy for types. should it be the same here? how is the integration between different parts going to work? l suppose we are going to look into moving create, migrate, package from the kit repo over here or import these packages to make them available through |
I don't think it's necessarily required here. A lot of the reason for doing that is because the other packages are libraries intended to be used in other projects. That's mostly not how this package is used though
|
I think that's a good point that needs to be discussed. Back in January or so
I think in the long run this definitely makes sense. Due to the timeline, I don't think it matters if we do it before or after the summit. |
i think this needs to be discussed and checked for ergonomics of development for kit related packages/commands. should they even live in this repo or continue to be in kit? keeping a synced copy hasn't worked well back when vite-plugin-svelte started and moving create-svelte out of the kit repo is going to make testing changes in kit with it much harder for example. a modular approach to did you check how others like maybe i should break this down into issues/discussions? but feels important to me to get bootstrapped in the right direction. this is going to have major impact on the dx for us and contributors and even the ux for the users. |
It's possible that we could move this code back into the
it's only a very temporary thing until this package is announced. i'm not worried about being able to do it for the next two months. we definitely won't have two copies of the
I can't remember having a change that really touched
One thing we do need to figure out is whether we want to try to load community adders in some fashion or how that would work. For the core stuff though, I hate developing across multiple repos. It's such a pain. It's really nice to have this stuff live in the same repo.
no. I'm definitely curious though if anyone's got time to investigate |
A modular approach could be interesting. It's been something that I've had in the back of my mind for a little now. Each command would have their own discrete package that gets downloaded and executed (e.g. imagine running if we go down that route, we could structure the packages like so:
would it? i don't think I see it being used directly anywhere in the repo for testing, unless you meant something else? i'm not particularly convinced that having the packages be located all over the place is the best idea either. i distinctly remember being confused the first time i wanted to check out the source for
that would be great! |
ffec610
to
491d0ae
Compare
it is used if you run The name prior to create-svelte, the original svelte+rollup template was loaded with degit and in the past i did use degit in svite to load templates from github at execution time rather than shipping them with the cli. svelte-package also is using sveltekit under the hood and the same issues around testing apply, it cannot be used without kit so i'd say it makes sense to host it in the kit monorepo. svelte-migrate is a different story as it has migrations for both svelte and sveltekit. I really like the idea of |
I think the relation is tighter between create-svelte and svelte-add than it is between create-svelte and kit. The main time
Yeah, I'm less familiar with those, but they could make sense to continue living in the SvelteKit repo. I think for now we'll not try to include them because they would pull in a lot of new dependencies, but I have been working to slim them down and maybe we can revisit after the initial release.
It could be a bit of a mix as well. We could have some things live in this monorepo and some things pulled in. I don't think we need to decide it all right now though |
The goal here is to get the most basic integration going and to avoid typing / linting errors. Nothing fancy.
You can actually already test the most basic integration. Checkout the repo and run the
build
command (!IMPORTANT!, forcreate-svelte
template stuff creation) and start the dev server after that if you like. To run the cli use:Todos:
create-svelte
to TS, so that we can properly integrate it in our build setupcreate-svelte
templates.pnpm check
Notable changes
cli
/create-svelte
to TS, so that it can make proper use of or other packages, without the need of bundling the other packages beforehandcli
fromdist
todist-templates
, so that we can keep usingdist
for our bundling output, to keep it unified across packages.svelte-add
can be handled in another pr later on.