-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
No adapter by default #62
Comments
What happens if they do Are we currently installing anything to This does overall seem like a reasonable idea, though. |
I think we abort the build altogether:
No, the closest we get is modifying |
Aborting makes sense to me. The least work for us would probably be to abort the build after updating |
Detecting the package manager in use can be challanging and it can change over time, eg. npm7 now reads from yarn.lock (it still uses package-lock.json but presence of yarn.lock may not guarantee that user wants yarn) |
Perhaps this functionality makes sense to put in |
Does this also serve the purpose of satisfying #129? |
In the component library case I don't think you'd run In any case, I'm starting to wonder if there should be a separate |
* create separate svelte-kit adapt command (#62) * transform server and client in parallel * remove unused import
|
What should the default template have in it now that |
I think The case where I could see it being useful to have two separate commands is if you wanted to support multiple adapters, which I don't think it something we support right now. But in that case I could see it saving build time because you could just build the common files / app once and then adapt it to two different platforms. The case where I see having two adapters being useful is that many adapters can't easily be run locally right now (e.g. lambda/function type adapters). It might be useful to run the node adapter for local testing in that case. We have |
I think this was mostly fixed by #430: Line 114 in f1bc218
@Rich-Harris was there anything else to do here or should we close this one? |
Yeah i think we can close it |
A question someone is likely to have early on in their SvelteKit journey is 'how will I deploy this thing?' If someone does the natural thing of running
npm run build
to see what happens, they'll be given a Node app viaadapter-node
, which is possibly the most awkward thing to deploy of all the options.The only other adapter that isn't tied to a specific platform is
adapter-static
, but that's no good since it's also the only adapter that can only handle a subset of Svelte apps.Solution: begin with no adapter, and
npm run build
gives you some feedback along these lines:The user types e.g.
cfw
to filter the list......and hits enter...
The text was updated successfully, but these errors were encountered: