Code Monkey home page Code Monkey logo

electron-vite-vue's Introduction

electron-vite-vue

๐Ÿฅณ Really simple Electron + Vue + Vite boilerplate.

GitHub Build GitHub Discord

Features

๐Ÿ“ฆ Out of the box
๐ŸŽฏ Based on the official template-vue-ts, less invasive
๐ŸŒฑ Extensible, really simple directory structure
๐Ÿ’ช Support using Node.js API in Electron-Renderer
๐Ÿ”ฉ Support C/C++ native addons
๐Ÿ–ฅ It's easy to implement multiple windows

Quick Start

npm create electron-vite

electron-vite-vue.gif

Debug

electron-vite-react-debug.gif

Directory

+ โ”œโ”€โ”ฌ electron
+ โ”‚ โ”œโ”€โ”ฌ main
+ โ”‚ โ”‚ โ””โ”€โ”€ index.ts    entry of Electron-Main
+ โ”‚ โ””โ”€โ”ฌ preload
+ โ”‚   โ””โ”€โ”€ index.ts    entry of Preload-Scripts
  โ”œโ”€โ”ฌ src
  โ”‚ โ””โ”€โ”€ main.ts       entry of Electron-Renderer
  โ”œโ”€โ”€ index.html
  โ”œโ”€โ”€ package.json
  โ””โ”€โ”€ vite.config.ts

Be aware

๐Ÿšจ By default, this template integrates Node.js in the Renderer process. If you don't need it, you just remove the option below. Because it will modify the default config of Vite.

# vite.config.ts

export default {
  plugins: [
-   // Use Node.js API in the Renderer-process
-   renderer({
-     nodeIntegration: true,
-   }),
  ],
}

FAQ

electron-vite-vue's People

Contributors

awkj avatar caoxiemeihao avatar dependabot[bot] avatar fan9704 avatar itsnwa avatar jaw52 avatar jenny-pyl avatar jiaocz avatar jindaxuan avatar liumingye avatar lzdyes avatar markthree avatar matrix53 avatar mollerzhu avatar mranyx avatar oceanlvr avatar owen-tsai avatar sabera1ter avatar seidko avatar seryibaran avatar stefnotch avatar suoutsky avatar tanimodori avatar xhayper avatar xuxiaowei-com-cn avatar yi-ge avatar yi-xu-0100 avatar youngleish avatar zhoufeifan avatar zigmax809 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.