Skip to content

Commit d4a1b54

Browse files
committed
docs: update old blog post a bit
since it's high on google search ranks we should update it to not confuse people
1 parent ae752c9 commit d4a1b54

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

documentation/blog/2020-07-17-svelte-and-typescript.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,9 @@ We think it'll give you a much nicer development experience — one that also sc
1616

1717
## Try it now
1818

19-
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:
19+
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.
2020

21-
```bash
22-
npx degit sveltejs/template svelte-typescript-app
23-
cd svelte-typescript-app
24-
node scripts/setupTypeScript.js
25-
```
21+
Alternatively you can run `npm create vite@latest myapp -- --template svelte-ts` to scaffold a Vite project using Svelte and TypeScript.
2622

2723
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.
2824
Later in this blog post, we'll detail the individual steps involved in using TypeScript in an existing Svelte project.

0 commit comments

Comments
 (0)