基于React官方脚手架-create-react-app
这个脚手架使用create-react-app 创建的脚手架
Features 功能特性
- antd 按需加载样式webpack配置
- react-hot-loader 热加载
- 引入fontawesome
- 使用react-group-transition替代swiper做轮播图动画
1. start
$ git clone https://github.com/nqmysb/shared-library-ui.git
$ cd shared-library-ui
$ npm install 或者 yarn install
npm如果速度比较慢,请更换镜像为淘宝镜像
2. dev
2.1 开发调试
//打包完成,启动项目
$ npm start 或者 yarn start
2.2 代码检查
$ npm run lint
2.3 测试用例
$ npm run test:watch
2.4 产出资源
$ npm run build
3. 技术栈
美工原型参考:https://www.wenkuzhijia.cn/