All Projects → jctaoo → vite-electron-esbuild-starter

jctaoo / vite-electron-esbuild-starter

Licence: MIT license
⚡️The electron starter using Vite and esbuild to fast development.

Programming Languages

typescript
32286 projects
CSS
56736 projects
HTML
75241 projects

Projects that are alternatives of or similar to vite-electron-esbuild-starter

tailwind-layouts
Collection of Tailwind Layouts
Stars: ✭ 53 (+1.92%)
Mutual labels:  vite, esbuild
vite-plugin-cloudflare
🔥Building Cloudflare workers is faster and easier using vite-plugin-cloudflare with node builtins like process and stream
Stars: ✭ 108 (+107.69%)
Mutual labels:  vite, esbuild
electron-vue-next
A starter template for using vue-next with the electron.
Stars: ✭ 189 (+263.46%)
Mutual labels:  vite, esbuild
fast-vite-nestjs-electron
Vite + Electron + Nestjs with esbuild, crazy fast! ⚡
Stars: ✭ 128 (+146.15%)
Mutual labels:  vite, esbuild
electron-vite-boilerplate
📚 A Electron + Vite boilerplate of the nature of learning(source-code of vite-plugin-electron) / 学习性的样板工程(vite-plugin-electron源码)
Stars: ✭ 157 (+201.92%)
Mutual labels:  vite, esbuild
vitext
The Next.js like React framework for better User & Developer experience!
Stars: ✭ 376 (+623.08%)
Mutual labels:  vite, esbuild
win7
Yet another OS preview via web technologies focused on Microsoft Windows 7.
Stars: ✭ 93 (+78.85%)
Mutual labels:  vite
vital
Starter template for Vite with React (TypeScript). Supports Tailwind with CSS-Modules. Jest and @react/testing-library configured and ready to go. Also ESLint, Prettier, Husky, Commit-lint and Atomic Design for components.
Stars: ✭ 151 (+190.38%)
Mutual labels:  vite
fastadmin
vue3 + element-plus fast admin scaffold, 基于vue3和ElementPlus的中后台快速应用脚手架
Stars: ✭ 50 (-3.85%)
Mutual labels:  vite
react-ssr-setup
React ssr setup, new ssr for react-18
Stars: ✭ 22 (-57.69%)
Mutual labels:  vite
vue-devui-early
Vue3版本的DevUI组件库。本仓库已迁移至:https://github.com/DevCloudFE/vue-devui
Stars: ✭ 39 (-25%)
Mutual labels:  vite
vue-lite-admin
a lite vue3.0 admin template,there is no typescript and vuex (但注释挺全)
Stars: ✭ 67 (+28.85%)
Mutual labels:  vite
promotion-web
基于React: v18.x.x/Webpack: v5.x.x/React Router v6.x.x/ Antd: v5..x.x/Fetch Api/ Typescript: v4.x.x 等最新版本进行构建...
Stars: ✭ 374 (+619.23%)
Mutual labels:  vite
Admin-Frame-Vue3
基于Vue3 + Element-Plus + Vite 开发的中/后台管理系统
Stars: ✭ 181 (+248.08%)
Mutual labels:  vite
mongood
A MongoDB GUI with Fluent Design
Stars: ✭ 674 (+1196.15%)
Mutual labels:  vite
vue-component-lib-starter
A bare-bones example of creating your own Vue component library.
Stars: ✭ 221 (+325%)
Mutual labels:  vite
vite-plugin-dts
A vite plugin for generating `.d.ts` files.
Stars: ✭ 539 (+936.54%)
Mutual labels:  vite
morsemoji
Translate text to morse code, but the morse code is emojis
Stars: ✭ 48 (-7.69%)
Mutual labels:  vite
vite-plugin-restart
Custom files/globs to restart Vite server
Stars: ✭ 92 (+76.92%)
Mutual labels:  vite
webpack-to-vite
Convert a webpack/vue-cli project to vite project. 将 webpack/vue-cli 项目转换为 vite 项目。
Stars: ✭ 603 (+1059.62%)
Mutual labels:  vite

⚡️ vite electron esbuild starter

⚡️

Chinese

The electron project stater using vite for renderer process and esbuild / tsc for main process.

React demo with antd is available here (Automatic style introduction has been configured. Vite supports on-demand loading by default): antd branch

Note: CSC_IDENTITY_AUTO_DISCOVERY is set to false by default to avoid the codesign operation in packaging macos (learn more: codesign)

Usage

Create a Project:

  • Clone this project directly.
  • If you use GitHub, click Use this template at the top of the page or here (do not check include all branch)

Installation dependencies

yarn

Start local development

# Use esbuild to compile the main process Typescript, which is faster
yarn run dev

# Use tsc to compile the main process Typescript
yarn run dev:tsc

You can also use dev:main, dev:main:tsc, and dev:renderer separately to debug the main process and the rendering process separately.

Compile/Pack

# Only build the target code and resources of the main process and the rendering process, without packaging (exe, dmg, etc.)
yarn run build

# Preview your application in production mode without pack.
yarn run preview

# Build and pack as a runnable program or installer
yarn run pack:win
yarn run pack:mac
yarn run pack:linux

# Pack for all platforms
yarn run pack # Exclude mac platform, applicable to linux & win
yarn run pack:all

Clean up the build directory

yarn run clean

Screenshot

screenshot

File structure

Use two-package-structure

+ app                     electron-builder app directory and its build product directory (target js code, image resources, etc., instead of installation packages or executable files)
  - package.json          Production dependencies, all stored as dependencies (not devDependencies)
+ dist                    electron-builder package directory
+ scripts                 Support scripts for development/build.
+ src      
  + common                common code
  + main                  for main process
  + renderer              for renderer process
- package.json            Dependencies during development, all stored as devDependencies (not dependencies)
- vite.config.ts          vite configurations
- electron-builder.yml    electron-builder configurations
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].