English
š¦ Ready out of the box
šÆ Based on the official solidjs/templates/ts, project structure will be familiar to you
š± Easily extendable and customizable
šŖ Supports Node.js API in the renderer process
š© Supports C/C++ native addons
š Debugger configuration included
š„ Easy to implement multiple windows
git clone --depth 1 --branch main https://github.com/maulik9898/electron-vite-solidjs-tailwindcss.git your-project-name
cd your-project-name
npm install
Familiar React application structure, just with electron
folder on the top :wink:
Files in this folder will be separated from your React application and built into dist/electron
āāā electron Electron-related code
ā āāā main Main-process source code
ā āāā preload Preload-scripts source code
ā āāā resources Resources for the production build
ā āāā icon.icns Icon for the application on macOS
ā āāā icon.ico Icon for the application
ā āāā installerIcon.ico Icon for the application installer
ā āāā uninstallerIcon.ico Icon for the application uninstaller
ā
āāā release Generated after production build, contains executables
ā āāā {version}
ā āāā {os}-unpacked Contains unpacked application executable
ā āāā Setup.{ext} Installer for the application
ā
āāā public Static assets
āāā src Renderer source code, your React application
This template integrates Node.js API to the renderer process by default. If you want to follow Electron Security Concerns you might want to disable this feature. You will have to expose needed API by yourself.
To get started, remove the option as shown below. This will modify the Vite configuration and disable this feature.
# vite.config.ts
electron({
- renderer: {}
})
execa
node-fetch
)