Skip to content

Commit 32775a6

Browse files
authored
Make TypeScript integration more visible (#5871)
1 parent 3e09361 commit 32775a6

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

site/content/blog/2017-08-07-the-easiest-way-to-get-started.md

+5
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,17 @@ In the terminal, you can instantly create a new project like so:
4343
```bash
4444
npx degit sveltejs/template my-svelte-project
4545
cd my-svelte-project
46+
# to use TypeScript run:
47+
# node scripts/setupTypeScript.js
48+
4649
npm install
4750
npm run dev
4851
```
4952

5053
This will create a new project in the `my-svelte-project` directory, install its dependencies, and start a server on http://localhost:5000.
5154

55+
You can find more information about using TypeScript [here](blog/svelte-and-typescript).
56+
5257
Once you've tinkered a bit and understood how everything fits together, you can fork [sveltejs/template](https://github.com/sveltejs/template) and start doing this instead:
5358

5459
```bash

site/src/routes/index.svelte

+2
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@
7777
npx degit <a href="https://github.com/sveltejs/template" style="user-select: initial;">sveltejs/template</a> my-svelte-project
7878
<span class="token comment"># or download and extract <a href="https://github.com/sveltejs/template/archive/master.zip">this .zip file</a></span>
7979
cd my-svelte-project
80+
<span class="token comment"># to use <a href="blog/svelte-and-typescript">TypeScript</a> run:</span>
81+
<span class="token comment"># node scripts/setupTypeScript.js</span>
8082

8183
npm install
8284
npm run dev

0 commit comments

Comments
 (0)