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.
... and tailwind
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 dev
This will start the Vite development server and open the Electron application window.
To build the application, run:
npm run build
This 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.package.json
.build.config.json
.LICENSE
.