question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add a typescript-template repo

See original GitHub issue

Is your feature request related to a problem? Please describe. Many people want to use Svelte with Typescript. With svelte-preprocess, a fitting rollup-config and Svelta Beta from VSCode this is working pretty good already. But there is no template devs can degit to get a quick start.

Describe the solution you’d like Add a sveltejs/typescript-template similar to https://github.com/sveltejs/template with some instructions on how to get Typescript running. After some iterations and feedback one could even think about a blogpost on the official website.

Describe alternatives you’ve considered Explaining the same things in Discord and various Github issues over and over again.

How important is this feature to you? Important to get the word out that Typescript support is in a good state now.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:18
  • Comments:22 (17 by maintainers)

github_iconTop GitHub Comments

5reactions
ortacommented, Jul 4, 2020

OK, that should be good now:

npx degit orta/template#ts
node scripts/setupTypeScript.js
4reactions
ortacommented, Jun 27, 2020

This is what is needed to set up the repo for TS: https://github.com/orta/svelte-ts-template-example/blob/master/scripts/setupTypeScript.js

I’m in favour of 1 also: the docs could be something like:

If you want to covert this repo to a TypeScript project run:

node scripts/setupTypeScript.js test-template

Otherwise you can delete the scripts directory.

Read more comments on GitHub >

github_iconTop Results From Across the Web

bscotch/typescript-template: Typescript project starter ... - GitHub
Typescript project starter that includes testing, linting, and changelogs, and is ready for publishing to npm - GitHub - bscotch/typescript-template: ...
Read more >
typescript-repo-template - npm
Template to dev everythings in typescript. Latest version: 0.0.0-alpha.0, last published: 3 years ago. Start using typescript-repo-template ...
Read more >
Bootstrapping tools for TypeScript projects
These projects provide templates which include TypeScript support. Node with npm. Bundle your TypeScript library with no config, powered by esbuild. tsup.
Read more >
A Beginners Guide to Creating a TypeScript library ... - Medium
This is a beginner's guide to help you create a template TypeScript library with typescript-starter and add the project to a Github repository....
Read more >
How To Set Up a New TypeScript Project - DigitalOcean
Running npx gts init will also add helpful npm scripts to your package.json file. For example, you can now run npm run compile...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found