Skip to content

Commit 285b6a7

Browse files
authored
Upgrade to latest dependencies, accommodate breaking SvelteKit changes (#18)
1 parent 10b5cc4 commit 285b6a7

File tree

9 files changed

+514
-548
lines changed

9 files changed

+514
-548
lines changed

package-lock.json

Lines changed: 477 additions & 495 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@
1010
"@fontsource/fira-mono": "^4.2.2"
1111
},
1212
"devDependencies": {
13-
"@sveltejs/adapter-static": "^1.0.0-next.38",
14-
"@sveltejs/kit": "^1.0.0-next.403",
15-
"svelte": "^3.49.0",
16-
"vite": "^3.0.4"
13+
"@sveltejs/adapter-static": "^1.0.0-next.44",
14+
"@sveltejs/kit": "^1.0.0-next.511",
15+
"svelte": "^3.50.1",
16+
"vite": "^3.1.6"
1717
},
1818
"type": "module",
1919
"engines": {
20-
"node": ">=16.7"
20+
"node": ">=16.14"
2121
}
2222
}

src/hooks.js

Lines changed: 0 additions & 4 deletions
This file was deleted.

src/routes/+layout.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export const ssr = false;
2+
export const prerender = true;
File renamed without changes.
File renamed without changes.

src/routes/about.svelte

Lines changed: 0 additions & 41 deletions
This file was deleted.

src/routes/about/+page.svelte

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<svelte:head>
2+
<title>About</title>
3+
</svelte:head>
4+
5+
<div class="content">
6+
<h1>About this app</h1>
7+
8+
<p>
9+
This is a <a href="https://kit.svelte.dev">SvelteKit</a> app. You can make your
10+
own by typing the following into your command line and following the prompts:
11+
</p>
12+
13+
<!-- TODO lose the @next! -->
14+
<pre>npm init svelte@next</pre>
15+
16+
<p>
17+
The page you're looking at is purely static HTML, with no client-side
18+
interactivity needed. Because of that, we don't need to load any JavaScript.
19+
Try viewing the page's source, or opening the devtools network panel and
20+
reloading.
21+
</p>
22+
</div>
23+
24+
<style>
25+
.content {
26+
width: 100%;
27+
max-width: var(--column-width);
28+
margin: var(--column-margin-top) auto 0 auto;
29+
}
30+
</style>

svelte.config.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ import adapter from '@sveltejs/adapter-static';
44
const config = {
55
kit: {
66
adapter: adapter(),
7-
prerender: {
8-
default: true,
9-
},
107
}
118
};
129

0 commit comments

Comments
 (0)