This is a project template for Svelte apps. It lives at https://github.com/sveltejs/template.
To create a new project based on this template using degit:
npx degit sveltejs/template svelte-app
cd svelte-app
Note that you will need to have Node.js installed.
npx degit sveltejs/template wc-svelte-clock
cd wc-svelte-clock && yarn
App.svelte
taken from clockcustomElement: true
inside rollup.config.jssvelte:options
inside App.svelte
<svelte:options tag=”svelte-clock” immutable={true} />
public/index.html
<svelte-clock></svelte-clock>
mkdir docs && touch docs/index.html
yarn build