Template to create a desktop app with SvelteKit, Electron and TypeScript (with electron-updater, electron-reload and electron-builder)
This is a project template for Svelte and Electron apps. It lives at https://github.com/el3um4s/memento-sveltekit-electron-typescript.
To create a new project based on this template using degit:
npx degit el3um4s/memento-sveltekit-electron-typescript
Then install the dependencies with
npm install
cd svelte
npm install
Note that you will need to have Node.js installed.
For development purpose:
npm run nodemon
: auto restart Electron on changenpm run svelte:build
: build Svelte code (and copy indist/www
You can configure settings in index.ts
. Change developerOptions
:
isInProduction
: true if is in productionserveSvelteDev
: true when you want to watch sveltebuildSvelteDiv
: true when you want to build sveltewatchSvelteBuild
: true when you want to watch build svelte
For publish purpose:
npm run out:win
: create an exe file for Windowsnpm run publish:win
: publish the app on GitHub
I'm blogging about the development process in these posts: