3 Star 7 Fork 0

Herbert / electron-react-antd-antv-cli

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

electron-react-antd-antv-cli

一个集成electron、react、antd、antv的开发脚手架,便于快速搭建基于react开发的electron桌面应用

EdeverClient可视化客户端便于更好的获取脚手架更新动态, 基于electron-react-antd-antv-cli构建! GitHub: HerbertHe/EdeverClient, Gitee: HerbertHe/EdeverClient

环境依赖

关于electron的镜像,electron7.x之后需要设置单独的镜像,不然会安装报错;根据官方文档,中国地区镜像为: https://cdn.npm.taobao.org/dist/electron/

在Windows的环境下命令为:

npm config set ELECTRON_MIRROR="https://cdn.npm.taobao.org/dist/electron/"

# 验证设置
npm config ls

# 成功配置输出
ELECTRON_MIRROR="https://cdn.npm.taobao.org/dist/electron/"

快速使用

已提供命令行开发工具Edever做更便捷的下载管理,请参考文档使用Gitee: HerbertHe/Edever, GitHub: HerbertHe/Edever

  • clone 仓库
# github
git clone https://github.com/HerbertHe/electron-react-antd-antv-cli.git

# gitee
git clone https://gitee.com/HerbertHe/electron-react-antd-antv-cli.git
  • 进入仓库

  • 下载依赖

yarn
  • 验证安装
yarn run ele:dev
  • 已提供的指令

        "react:dev": "启动react的预览",
        "react:build": "构建react的产物",
        "react:test":  "react测试",
        "react:eject": "react-scripts eject",
        "ele:dev": "启动electron开发预览"
        "build:win64": "打包生成64位windows应用"
        # 下面详述包及自定义配置,目前只针对electron的开发做了脚本
        # 项目启动后在任何时间都可以在命令行输入rs回车使用nodemon强制项目更新
        rs
        # Ctrl + c后输入y即可退出命令行启动预览环境

文档

参考文档

MIT License Copyright (c) 2020 Herbert Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

一个集成electron、react、antd、antv的开发脚手架,便于快速搭建基于react开发的electron桌面应用 展开 收起
JavaScript
MIT
取消

发行版 (7)

全部

贡献者

全部

近期动态

加载更多
不能加载更多了
JavaScript
1
https://gitee.com/HerbertHe/electron-react-antd-antv-cli.git
git@gitee.com:HerbertHe/electron-react-antd-antv-cli.git
HerbertHe
electron-react-antd-antv-cli
electron-react-antd-antv-cli
master

搜索帮助