Skip to content

tgrassl/solid-vite-electron

Repository files navigation

solid-vite-electron

result

Inspired by ch99q

Based on electron-vite

Overview

⚡️ SolidJS + Vite + TypeScript + Electron

📦 Ready out of the box

🔥 Hot reloading

Installation

# clone template without git history
npx degit https://github.com/tgrassl/solid-vite-electron <folder_name>

# open the project directory
cd <folder_name>

# install dependencies
npm install

# start the application
npm run dev

# make a production build
npm run build

Directory structure

├── electron                                 Electron-related code
│   ├── main                                 Main-process source code
│   └── preload                              Preload-scripts source code
│
├── release                                  Generated after production build, contains executables
│   └── {version}
│       ├── {os}-{os_arch}                   Contains unpacked application executable
│       └── {app_name}_{version}.{ext}       Installer for the application
│
├── public                                   Static assets
└── src                                      Renderer source code, your SolidJS application

Read more

vite-plugin-electron

SolidJS