agile-mobile
v1.0.0-beta.2
Published
The agile-mobile is mobile ui components built on react. Focusing on agile development and based on simple design always look for extensibility and perfomance and ease.
Downloads
69
Readme
📦 安装
npm install agile-mobile
yarn add agile-mobile
🔨 使用
import { Button } from 'agile-mobile';
const App = () => (
<>
<Button color="primary">Hello Agile!</Button>
</>
);
💄 开发环境
包含本地文档及示例展示。
yarn start
💍 目录结构
.
├── LICENSE
├── README.md
├── babel-transform-less-to-css.js # babel插件(将.less替换为.css)
├── config # 文档配置(基于dumi)
│ ├── components.ts
│ └── config.ts
├── docs # 文档配置
├── dist # 文档构建后目录
├── gulpfile.js # 组件打包配置(基于gulp)
├── jest.config.js # 测试配置(基于jest)
├── lib # 组件打包后的目录
├── package.json
├── src # 源文件
│ ├── assets # 资源目录
│ ├── components # 组件目录
│ │ ├── button
│ │ ├── elastic-box
│ │ └── ...
│ ├── demos
│ ├── global # 全局配置
│ │ ├── global.less
│ │ ├── index.ts
│ │ └── theme.less # 全局主题配置
│ ├── index.ts # 组件库入口
│ ├── tests # 测试入口
│ ├── typings # 辅助ts配置
│ └── utils # 工具
├── tsconfig.json
└── yarn.lock
🥷 组件结构
.
├── src
│ ├── components
│ │ ├── button
│ │ │ ├── README.md # 说明(可中英文区分README.es.md、README.zh.md)
│ │ │ ├── button.tsx # 组件主体
│ │ │ ├── PropsType.tsx # 类型定义(定义在组件内则可选)
│ │ │ ├── demos # 示例
│ │ │ │ └── index.tsx
│ │ │ ├── index.ts # 入口
│ │ │ ├── styles # 样式
│ │ │ │ └── button.less
│ │ │ └── tests # 测试
│ | │ │ └── button.test.tsx
License
Agile Mobile UI is MIT licensed, as found in the LICENSE file.