From 34948660defc8f34aece606a204572ef834220dc Mon Sep 17 00:00:00 2001 From: Ben McCann <322311+benmccann@users.noreply.github.com> Date: Tue, 6 Dec 2022 16:35:13 -0800 Subject: [PATCH] add back getting started CLI commands --- site/content/docs/01-getting-started.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/site/content/docs/01-getting-started.md b/site/content/docs/01-getting-started.md index 4a911fb904..a0433ea6f8 100644 --- a/site/content/docs/01-getting-started.md +++ b/site/content/docs/01-getting-started.md @@ -6,7 +6,15 @@ title: Getting started To try Svelte in an interactive online environment you can try [the REPL](https://svelte.dev/repl) or [StackBlitz](https://node.new/svelte). -To create a project locally we recommend using [SvelteKit](https://kit.svelte.dev/), the official application framework from the Svelte team. It will handle calling [the Svelte compiler](https://www.npmjs.com/package/svelte) to convert your `.svelte` files to `.js` and `.css` . It also provides all the other pieces you need to build a web application such as routing and deployment. There are [plugins to handle Svelte compilation](https://sveltesociety.dev/tools#bundling) for all the major web bundlers, but we recommend using [Vite](https://vitejs.dev/), which SvelteKit sets up automatically. +To create a project locally we recommend using [SvelteKit](https://kit.svelte.dev/), the official application framework from the Svelte team: +``` +npm create svelte@latest myapp +cd myapp +npm install +npm run dev +``` + +SvelteKit will handle calling [the Svelte compiler](https://www.npmjs.com/package/svelte) to convert your `.svelte` files to `.js` and `.css` . It also provides all the other pieces you need to build a web application such as routing and deployment. There are [plugins to handle Svelte compilation](https://sveltesociety.dev/tools#bundling) for all the major web bundlers, but we recommend using [Vite](https://vitejs.dev/), which SvelteKit sets up automatically. The Svelte team maintains a [VS Code extension](https://marketplace.visualstudio.com/items?itemName=svelte.svelte-vscode) and there are integrations with various other [editors](https://sveltesociety.dev/tools#editor-support) and tools as well.