Giter VIP home page Giter VIP logo

aoliaoliao / electron-vite Goto Github PK

View Code? Open in Web Editor NEW

This project forked from caoxiemeihao/electron-vite-boilerplate

0.0 1.0 0.0 10.02 MB

๐Ÿ“š A Electron + Vite boilerplate of the nature of learning(source-code of vite-plugin-electron) / ๅญฆไน ๆ€ง็š„ๆ ทๆฟๅทฅ็จ‹(vite-plugin-electronๆบ็ )

License: MIT License

JavaScript 7.99% TypeScript 86.03% CSS 2.19% HTML 3.78%

electron-vite's Introduction

electron-vite-boilerplate

A Electron + Vite boilerplate of the nature of learning.

ๅญฆไน ๆ€ง็š„ Electron + Vite ๆ ทๆฟๅทฅ็จ‹!

awesome-vite Required Node.JS >= v14.17.0 GitHub license GitHub stars

  • ๐Ÿ“ฆ Out of the box
  • ๐Ÿšš Include only necessary dependencies

screenshot

Run Setup

# clone the project
git clone https://github.com/electron-vite/electron-vite-boilerplate.git

# enter the project directory
cd electron-vite-boilerplate

# install dependency
npm install

# develop
npm run dev

Directory

Once dev or build npm-script executed will be generate named dist folder. It has children dir of same as packages folder, the purpose of this design can ensure the correct path calculation.

ไธ€ๆ—ฆ dev ๆˆ– build ๅ‘ฝไปคๆ‰ง่กŒ่ฟ‡ๅŽ๏ผŒๅฐ†ไผš็”ŸๆˆไธŽ packages ็›ธๅŒ็ป“ๆž„ dist ๆ–‡ไปถๅคน๏ผŒ่ฟ™ๆ ท่ฎพ่ฎก็š„็›ฎ็š„ๆ˜ฏไฟ้šœๆž„ๅปบๅŽ่ทฏๅพ„่ฎก็ฎ—็š„ๆญฃ็กฎๆ€งใ€‚

โ”œโ”€โ”€ dist                      After build, it's generated according to the "packages" directory
โ”‚   โ”œโ”€โ”€ main/
โ”‚   โ”œโ”€โ”€ preload/
โ”‚   โ””โ”€โ”€ renderer/
โ”‚
โ”œโ”€โ”€ scripts
โ”‚   โ”œโ”€โ”€ build.mjs             npm run build
โ”‚   โ””โ”€โ”€ watch.mjs             npm run dev
โ”‚
โ””โ”€โ”€ packages
    โ”œโ”€โ”€ main                  Main-process source code
    โ”‚   โ””โ”€โ”€ vite.config.ts
    โ”œโ”€โ”€ preload               Preload-scripts source code
    โ”‚   โ””โ”€โ”€ vite.config.ts
    โ””โ”€โ”€ renderer              Renderer-process source code
        โ””โ”€โ”€ vite.config.ts

FAQ

electron-vite's People

Contributors

caoxiemeihao avatar dependabot[bot] avatar yi-xu-0100 avatar oceanlvr avatar 1739616529 avatar

Watchers

James Cloos 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.