Skip to content

Commit 736de99

Browse files
author
Rich Harris
committed
condense intro spiel
1 parent 38d727e commit 736de99

File tree

4 files changed

+17
-31
lines changed

4 files changed

+17
-31
lines changed

content/tutorial/03-sveltekit/01-concepts/01-introducing-sveltekit/README.md

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: What is SvelteKit?
33
---
44

5-
SvelteKit is a framework for building extremely high-performance web apps. Whereas Svelte is a _component framework_, SvelteKit is an _app framework_ (or 'metaframework', depending on who you ask) that solves the tricky problems of building something production-ready:
5+
Whereas Svelte is a _component framework_, SvelteKit is an _app framework_ (or 'metaframework', depending on who you ask) that solves the tricky problems of building something production-ready:
66

77
- Routing
88
- Server-side rendering
@@ -18,4 +18,18 @@ SvelteKit is a framework for building extremely high-performance web apps. Where
1818

1919
SvelteKit apps are server-rendered by default (like traditional 'multi-page apps' or MPAs) for excellent first load performance and SEO characteristics, but can then transition to client-side navigation (like modern 'single-page apps' or SPAs) to avoid jankily reloading everything (including things like third-party analytics code) when the user navigates. They can run anywhere JavaScript runs, though — as we'll see — your users may not need to run any JavaScript at all.
2020

21-
If that sounds complicated, worry not: SvelteKit is the framework that grows with you! Start simple and add new features as they come. This tutorial will go over the core concepts, while the [Advanced SvelteKit](/tutorial/handle) tutorial teaches you how to tackle more complex use cases.
21+
If that sounds complicated, worry not: SvelteKit is the framework that grows with you! Start simple and add new features as you need them.
22+
23+
## Project structure
24+
25+
On the right, in the file tree viewer, you'll see a handful of files that SvelteKit expects to find in a project.
26+
27+
`package.json` will be familiar if you've worked with Node.js before. It lists the project's dependencies — including `svelte` and `@sveltejs/kit` — and a variety of `scripts` for interacting with the SvelteKit CLI. (We're currently running `npm run dev` in the bottom window.)
28+
29+
> Note that it also specifies `"type": "module"`, which means that `.js` files are treated as native JavaScript modules by default, rather than the legacy CommonJS format.
30+
31+
`svelte.config.js` contains your project configuration. We don't need to worry about this file for now, but if you're curious, [visit the documentation](https://kit.svelte.dev/docs/configuration).
32+
33+
`src` is where your app's source code goes. `src/app.html` is your page template (SvelteKit replaces the `%sveltekit.head%` and `%sveltekit.body%` as appropriate), and `src/routes` defines the [routes](/tutorial/pages) of your app.
34+
35+
Finally, `static` contains any assets (like a `favicon.png` or a `robots.txt`) that should be included when your app is deployed.

content/tutorial/03-sveltekit/01-concepts/02-project-structure/README.md

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

content/tutorial/03-sveltekit/01-concepts/03-server-and-client/README.md

Lines changed: 0 additions & 13 deletions
This file was deleted.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"title": "Concepts"
2+
"title": "Introduction"
33
}

0 commit comments

Comments
 (0)