2 Star 2 Fork 0

lazyTai / react-ui

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

目录说明

+-- src                              // 开发目录
|   +-- component                    // 组件开发目录(重点)
|   |    +--dist                     // react-ui 打包后位置
|   |   |    +--reactUI.min.js       // 打包后的reactUi压缩文件
|   |   +--index.js                  // 所有组件集合在这个文件
|   |   +--webpack.build.js          // webpack打包配置文件(生产环境)
|   |   +--webpack.build.js          // webpack打包配置文件(开发环境)
|   |   +--每个组件目录
|   |   |    +--index.demo.js        // 组件demo运行实例
|   |   |    +--index.js             // 组件定义文件
|   |   |    +--style.css            // 组件样式
|   |   |    +--webpack.build.js     // webpack打包配置文件(生产环境)
|   |   |    +--webpack.build.js     // webpack打包配置文件(开发环境)
|   +-- model                        // dva的model
|   |   +-- app.js              
|   +-- page                         // demo展示界面
|   +-- route                        // demo展示路由
|   +-- style                        // 全局样式
|   |   +-- index.less               //
|   +-- util                         // 帮助类
|   +-- app.js                       // demo入口文件
|   +-- constants.js                 // 常量定义
|   +-- index.html                   // 模板html
+-- .babelrc               
+-- .gitignore              
+-- LICENSE                 
+-- package.json             
+-- README.md                
+-- tsconfig.json            

展示界面的安装

cnpm/npm i
cnpm/npm run dev //开发环境

单个组件demo开发

进入./component/[xxx你的组件]

webpack-dev-server //可以看到浏览器打开新的界面

注意:如果没有webpack-dev-server,请cnpm i webpack-dev-server -g

组件打包

cd ./component

webpack --config ./webpack.build.js

打包文件在./dist文件下

打包reactUI的使用

找到 ./component/dist/reactUI.min.js

import {  
    Toast,
    Bubble,
    Calender,...} from './reactUI.min.js'

todo

  • component文件下面的每个webpack.config.js+build.config.js公共提取
The MIT License (MIT) Copyright (c) 2018 lazyTai 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.

简介

react-ui 展开 收起
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/lazytai/react-ui.git
git@gitee.com:lazytai/react-ui.git
lazytai
react-ui
react-ui
master

搜索帮助