Skip to content
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

add adapter-auto to template configs #2885

Merged
merged 10 commits into from
Nov 24, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/cool-swans-sleep.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sveltejs/adapter-auto': patch
---

Force republish
5 changes: 5 additions & 0 deletions .changeset/young-students-chew.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'create-svelte': patch
---

Add adapter-auto to template configs
3 changes: 1 addition & 2 deletions packages/adapter-auto/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# @sveltejs/adapter-auto

## 1.0.0-next.0
### Patch Changes


### Patch Changes

- Add adapter-auto ([#2867](https://github.com/sveltejs/kit/pull/2867))
4 changes: 3 additions & 1 deletion packages/create-svelte/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@
/cli/versions.js

/templates/*/.svelte
/templates/*/.svelte-kit
/templates/*/build
/templates/*/.cloudflare
/templates/*/.vercel_build_output
/templates/*/.netlify
/templates/*/dist
/templates/*/dist
/templates/*/package
3 changes: 3 additions & 0 deletions packages/create-svelte/shared/+typescript/svelte.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import adapter from '@sveltejs/adapter-auto';
import preprocess from 'svelte-preprocess';

/** @type {import('@sveltejs/kit').Config} */
Expand All @@ -7,6 +8,8 @@ const config = {
preprocess: preprocess(),

kit: {
adapter: adapter(),

// hydrate the <div id="svelte"> element in src/app.html
target: '#svelte'
}
Expand Down
4 changes: 4 additions & 0 deletions packages/create-svelte/shared/-typescript/svelte.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import adapter from '@sveltejs/adapter-auto';

/** @type {import('@sveltejs/kit').Config} */
const config = {
kit: {
adapter: adapter(),

// hydrate the <div id="svelte"> element in src/app.html
target: '#svelte'
}
Expand Down
4 changes: 2 additions & 2 deletions packages/create-svelte/templates/default/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
"start": "svelte-kit start"
},
"devDependencies": {
"@sveltejs/adapter-auto": "workspace:*",
"@sveltejs/kit": "workspace:*",
"@sveltejs/adapter-auto": "next",
"@sveltejs/kit": "next",
"svelte": "^3.44.0",
"svelte-preprocess": "^4.9.8",
"typescript": "^4.4.3"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"devDependencies": {
"@sveltejs/adapter-auto": "workspace:*",
"@sveltejs/kit": "workspace:*",
"svelte": "^3.34.0"
"svelte": "^3.44.0"
},
"type": "module",
"dependencies": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@
"preview": "svelte-kit preview"
},
"devDependencies": {
"@sveltejs/adapter-auto": "workspace:*",
"@sveltejs/kit": "workspace:*",
"svelte": "^3.42.6"
"svelte": "^3.44.0"
},
"type": "module"
}
4 changes: 2 additions & 2 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.