This project is a template for building desktop applications using Svelte 4 and Electron. It combines the reactive UI capabilities of Svelte with the powerful desktop application framework Electron.
- Svelte 4: A modern JavaScript framework for building fast and reactive user interfaces.
- Electron: A framework for building cross-platform desktop applications with web technologies.
- Vite: A fast build tool and development server for modern web projects.
- TypeScript: Strongly typed programming language that builds on JavaScript.
... and tailwind
- Node.js (version 14 or higher)
- npm (version 6 or higher)
- Click the "Use this template" button on the GitHub repository page.
- Enter the repository name and click the "Create repository from template" button.
- Clone the repository to your local machine.
- Install the dependencies by running
npm install.
-
Clone the repository:
git clone https://github.com/your-username/svelte4-electron-app.git cd svelte4-electron-app -
Install the dependencies:
npm install
To start the development server, run:
npm run devThis will start the Vite development server and open the Electron application window.
To build the application, run:
npm run buildThis will build the Svelte application and package it into an Electron application.
dev: Starts the development server and Electron application.build: Builds the Svelte application for production.build:win: Builds the application for Windows.build:mac: Builds the application for macOS.build:linux: Builds the application for Linux.build:all: Builds the application for both Windows and macOS.preview: Previews the production build.check: Runs type checking and linting.check:watch: Runs type checking and linting in watch mode.format: Formats the code using Prettier.lint: Lints the code using ESLint.
- Change the package name, description, author, and repository in
package.json. - Change the application name in
build.config.json. - Change the license in
LICENSE. - Change the awesome app in your hand !!!