el3um4s / memento-sveltekit-electron-typescript

Template for create a desktop app with SvelteKit, Electron and TypeScript (with electron-updater, electron-reload and electron-builder)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MEMENTO SvelteKit Electron TypeScript

Template to create a desktop app with SvelteKit, Electron and TypeScript (with electron-updater, electron-reload and electron-builder)

Get Started

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.

Command

For development purpose:

  • npm run nodemon: auto restart Electron on change
  • npm run svelte:build: build Svelte code (and copy in dist/www

You can configure settings in index.ts. Change developerOptions:

  • isInProduction: true if is in production
  • serveSvelteDev: true when you want to watch svelte
  • buildSvelteDiv: true when you want to build svelte
  • watchSvelteBuild: true when you want to watch build svelte

For publish purpose:

  • npm run out:win: create an exe file for Windows
  • npm run publish:win: publish the app on GitHub

Notes

I'm blogging about the development process in these posts:

About

Template for create a desktop app with SvelteKit, Electron and TypeScript (with electron-updater, electron-reload and electron-builder)

License:MIT License


Languages

Language:Svelte 53.7%Language:TypeScript 35.6%Language:CSS 4.6%Language:HTML 3.5%Language:JavaScript 2.6%