Skip to content

Commit

Permalink
Make TypeScript integration more visible (#5871)
Browse files Browse the repository at this point in the history
  • Loading branch information
dreitzner authored Jan 18, 2021
1 parent 3e09361 commit 32775a6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,17 @@ In the terminal, you can instantly create a new project like so:
```bash
npx degit sveltejs/template my-svelte-project
cd my-svelte-project
# to use TypeScript run:
# node scripts/setupTypeScript.js

npm install
npm run dev
```

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

You can find more information about using TypeScript [here](blog/svelte-and-typescript).

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:

```bash
Expand Down
2 changes: 2 additions & 0 deletions site/src/routes/index.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@
npx degit <a href="https://github.com/sveltejs/template" style="user-select: initial;">sveltejs/template</a> my-svelte-project
<span class="token comment"># or download and extract <a href="https://github.com/sveltejs/template/archive/master.zip">this .zip file</a></span>
cd my-svelte-project
<span class="token comment"># to use <a href="blog/svelte-and-typescript">TypeScript</a> run:</span>
<span class="token comment"># node scripts/setupTypeScript.js</span>

npm install
npm run dev
Expand Down

0 comments on commit 32775a6

Please sign in to comment.