Giter Site home page Giter Site logo

checkimg's Introduction

electron-react-template

技术架构

electron16 + react17 + webpack5

目录解构

├── build   # 渲染进程构建目录
├── build_electron  # 主进程构建目录
│   ├── index.html
│   └── main.js
├── config # webpack 配置文件目录
│   ├── webpack.config.base.js
│   ├── webpack.config.electron.js # electron主进程生产环境打包配置
│   ├── webpack.config.dev.js # 渲染进程开发环境打包配置
│   └── webpack.config.prod.js # 渲染进程生产环境打包配置
├── electron # electron相关文件
│   ├── main.js # electron入口文件
│   └── preload.js # electron预加载文件
├── index.less
├── index.tsx
├── package-lock.json
├── package.json
├── public
│   ├── favicon.ico
│   ├── favicon.png
│   └── index.html
├── src # 渲染进程
│   ├── components
│   │   └── layout
│   │       └── Nav
│   │           ├── index.less
│   │           └── index.tsx
│   ├── index.less
│   └── index.tsx
└── tsconfig.json #ts配置文件

命令

  • npm run start: web 端启动
  • npm run build: 渲染进程构建
  • npm run build:electron: 主进程构建
  • npm run electron: 开发环境启动 electron
  • npm run pack: 构建生产环境调试文件
  • npm run dev:win64: 构建生产 windows64 环境包
  • npm run dev:macArm: 构建生产 mac --arm 环境包

checkimg's People

Contributors

1169938246 avatar

Watchers

 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.