From d4a1b5482f62f21af0e732b8808f240f0592fe5c Mon Sep 17 00:00:00 2001 From: Simon Holthausen Date: Mon, 3 Jul 2023 15:36:09 +0200 Subject: [PATCH] docs: update old blog post a bit since it's high on google search ranks we should update it to not confuse people --- documentation/blog/2020-07-17-svelte-and-typescript.md | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/documentation/blog/2020-07-17-svelte-and-typescript.md b/documentation/blog/2020-07-17-svelte-and-typescript.md index bcca836d4e..a6e07242ec 100644 --- a/documentation/blog/2020-07-17-svelte-and-typescript.md +++ b/documentation/blog/2020-07-17-svelte-and-typescript.md @@ -16,13 +16,9 @@ We think it'll give you a much nicer development experience — one that also sc ## Try it now -You can start a new Svelte TypeScript project using the [normal template](https://github.com/sveltejs/template) and by running `node scripts/setupTypeScript.js` before you do anything else: +You can start a new Svelte TypeScript project using Svelte's official scaffolding CLI by running `npm create svelte@latest` and following the prompts. This sets up a new SvelteKit project for you. -```bash -npx degit sveltejs/template svelte-typescript-app -cd svelte-typescript-app -node scripts/setupTypeScript.js -``` +Alternatively you can run `npm create vite@latest myapp -- --template svelte-ts` to scaffold a Vite project using Svelte and TypeScript. If you're a VS Code user, make sure you're using the (new) [official extension](https://marketplace.visualstudio.com/items?itemName=svelte.svelte-vscode), which replaces the popular extension by James Birtles. Later in this blog post, we'll detail the individual steps involved in using TypeScript in an existing Svelte project.