From d6137102121a8139bd0a2c9ad2b4b95bb3852fef Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Fri, 3 Jun 2022 10:10:43 -0400 Subject: [PATCH] Update site/content/blog/2019-04-16-svelte-for-new-developers.md --- site/content/blog/2019-04-16-svelte-for-new-developers.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/site/content/blog/2019-04-16-svelte-for-new-developers.md b/site/content/blog/2019-04-16-svelte-for-new-developers.md index 34ddc967d1..0a01474bbd 100644 --- a/site/content/blog/2019-04-16-svelte-for-new-developers.md +++ b/site/content/blog/2019-04-16-svelte-for-new-developers.md @@ -66,6 +66,8 @@ cd my-svelte-project npm install ``` +> You can replace `--template svelte` with `--template svelte-ts`, if you prefer TypeScript. + This creates a new directory, `my-svelte-project`, adds files from the [create-vite/template-svelte](https://github.com/vitejs/vite/tree/main/packages/create-vite/template-svelte) template, and installs a number of packages from npm. Open the directory in your text editor and take a look around. The app's 'source code' lives in the `src` directory, while the files your app can load are in `public`. In the `package.json` file, there is a section called `"scripts"`. These scripts define shortcuts for working with your application — `dev`, `build` and `preview`. To launch your app in development mode, type the following: