This repo was developed when Svelte 3 first came out. Since then better svelte-typescript integration has been developed, such as this one
=========
This is a Svelte + Typescript + Storybook SSR boiletplate project. If you are intrested in developing only UI components or SPA, it is here.
Create a .html
file and a corresponding .ts
file for the svelte component. During build time, the .ts
will be combined with the .html
file to become a svelte component. .html
& .ts
must have the same filename.
Subroutes is created by subfolder. It also assumes /Index
as /
. For example, pages/member/Index.html
will create a route http://localhost/member/
Every page has its own client side javascript to be used during hydration. This client side JS will load the minimum required svelte component.
build
folder,