Skip to content

This is a template for creating cross-platform desktop applications (Windows, macOS, and Linux) using Electron, Vite, React, and TypeScript. This project allows transforming React web applications into desktop applications while maintaining compatibility with all React libraries and frameworks.

Notifications You must be signed in to change notification settings

Marco-Centeno/Electron-Vite-React-TS

Repository files navigation

Imagen no encontrada

Electron-Vite-React-TS

This is a template for creating cross-platform desktop applications (Windows, macOS, and Linux) using Electron, Vite, React, and TypeScript. This project allows transforming React web applications into desktop applications while maintaining compatibility with all React libraries and frameworks.

Currently, two official plugins are available:

Expanding the ESLint configuration

If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:

  • Configure the top-level parserOptions property like this:
export default {
  // other rules...
  parserOptions: {
    ecmaVersion: 'latest',
    sourceType: 'module',
    project: ['./tsconfig.json', './tsconfig.node.json'],
    tsconfigRootDir: __dirname,
  },
}
  • Replace plugin:@typescript-eslint/recommended to plugin:@typescript-eslint/recommended-type-checked or plugin:@typescript-eslint/strict-type-checked
  • Optionally add plugin:@typescript-eslint/stylistic-type-checked
  • Install eslint-plugin-react and add plugin:react/recommended & plugin:react/jsx-runtime to the extends list

Requirements

  • Node.js (v21.5.0 or higher)
  • npm ( v10.8.1 or higher)

Installation

  1. Clone the repository:

    git clone https://github.com/Marco-Centeno/Electron-Vite-React-TS.git
    
  2. Into the root directory of this project install the dependencies

     npm install
    

How to use

  • Test in a development mode

    Use the command

    npm run dev

    For runing the programm in a developnet mode non-production

  • Build Project

    You can add other command of Electron-Builder before the command of build

    • Building for different OS
      • Windows

        npm run build:win
      • Mac

        npm run build:mac
      • Linux

        npm run build:lin
    • You can also use custom building commands of electron builder

Imagen no encontrada

About

This is a template for creating cross-platform desktop applications (Windows, macOS, and Linux) using Electron, Vite, React, and TypeScript. This project allows transforming React web applications into desktop applications while maintaining compatibility with all React libraries and frameworks.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published