Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tonyrewin/svelte3-ts-boilerplate


https://github.com/tonyrewin/svelte3-ts-boilerplate

postcss rollup svelte typescript

Last synced: 3 months ago
JSON representation

Awesome Lists containing this project

README

        

# Svelte3-Typescript Boilerplate

TS analytics works in VSCode! Based on:

- [geakstr/svelte-3-rollup-typescript-vscode](https://github.com/geakstr/svelte-3-rollup-typescript-vscode)
- [Axelen123/svelte-ts-template](https://github.com/Axelen123/svelte-ts-template)

## Description

Starter pack for Svelte 3/Rollup/Typescript/Visual Studio Code:

- Typescript support inside Svelte components with [@pyonr/svelte-ts-preprocess](https://github.com/pyonr/svelte-ts-preprocess)
- Also it adds some support for Visual Studio Code and [svelte-vscode](https://github.com/UnwrittenFun/svelte-vscode) extension (via `svelte.config.js`)
- Jest to test .ts/.svelte
- Supports `index.html` entry file, dev server to serve it and livereload
- ESLint, Prettier
- See all in `rollup.config.js`

## How to start

Please, notice the importance of `svelte.config.js` in the root directory for VSCode to use your project's preprocessors. Jest, Prettier, ESLint, PostCSS are optional but useful. So clone and

```sh
npm i
npm run dev
```

### Linting

```sh
npm run lint
npm run format
```