Looking for a shareable component template? Go here --> sveltejs/component-template
This is a project template for Electron using Svelte. It lives at https://github.com/lpshanley/svelte-app-electron.
To create a new project based on this template using degit:
npx degit lpshanley/svelte-app-electron svelte-app-electron
cd svelte-app-electron
Note that you will need to have Node.js installed.
Install the dependencies...
cd svelte-app-electron
npm install
...then start Rollup:
npm run dev
An Electron window will open automaticaly. You should now seel your app running. Edit a component file in src
, save it, and the app should update automatically with your changes.
To create an optimised version of the app:
npm run build
You can get the newly built app in the dist
folder.