Vite Solid Electron screenshot

Vite Solid Electron

Author Avatar Theme by Ch99q
Updated: 18 Feb 2022
49 Stars

Vite + SolidJS + Electron boilerplate.

Categories

Overview

The Vite Solid Electron is a template that provides a simple integration of Vite, SolidJS, and Electron. It includes only the basic dependencies and offers a flexible extension option. The project follows a specific directory structure and generates a “dist” folder when the development or build npm script is executed. The template also allows for the use of Electron and NodeJS APIs in the renderer process and provides guidance on using node-native addons in the main process.

Features

  • Very simple integration of Vite, SolidJS, and Electron.
  • Only includes the essential dependencies.
  • Offers flexibility for extensions.
  • Allows the use of Electron and NodeJS APIs in the renderer process.
  • Supports the use of node-native addons in the main process.
  • Provides guidance on configuring Rollup for the main process.
  • Distinguishes between dependencies needed after application packaging and those that can be placed in devDependencies.
  • Special thanks to caoxiemeihao for the majority of the code base.

Installation

  1. Ensure that Node.js version 14.17.0 or above is installed.
  2. Clone the repository from GitHub.
  3. Run the following commands in the project directory:
    npm install
    
  4. To start the development server, run:
    npm run dev
    
  5. To build the application, run:
    npm run build
    

Summary

The Vite Solid Electron template is a straightforward solution for integrating Vite, SolidJS, and Electron. It provides a minimalistic set of dependencies and allows for the use of Electron and NodeJS APIs. The template also offers guidance on configuring Rollup for the main process and using node-native addons. Overall, it provides a flexible foundation for developing Electron applications with Vite and SolidJS.