4 Star 0 Fork 0

ryan / antd-cra

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

本例基于Create-react-app脚手架

包含:

  1. UI组件Antd
  2. Electron桌面应用
  3. 路由React Router4.0
  4. Mobx(更易入手,代替了Redux)

npm install yarn -g

install golbal yarn, then you can use yarn instead of npm

yarn(npm install)

install node_modules

yarn start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

yarn test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

yarn build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

See the section about deployment for more information.

yarn eject

Note: this is a one-way operation. Once you eject, you can’t go back!

It will copy all the configuration files and the transitive dependencies (Webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except eject will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.

yarn electron

Runs the app in the development mode. You can view it in desktop app.

yarn packager

Builds the app for production to the myDemo folder, it's a win x64 desktop app, you can run it when you click app.exe, and you can change package version by modify package.json.

空文件

简介

基于React的前端架构,含antd, react-router, electron 展开 收起
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/ryan2/antd-cra.git
git@gitee.com:ryan2/antd-cra.git
ryan2
antd-cra
antd-cra
dev

搜索帮助