2019-11-16 22:22:13 +08:00
|
|
|
|
# L7
|
2018-11-22 00:33:30 +08:00
|
|
|
|
|
2019-11-16 22:22:13 +08:00
|
|
|
|
![最近提交](https://badgen.net/github/last-commit/antvis/L7)
|
|
|
|
|
|
|
|
|
|
L7 Large-scale WebGL-powered Geospatial data visualization analysis framework
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Installation
|
|
|
|
|
|
|
|
|
|
```
|
2019-11-20 20:44:08 +08:00
|
|
|
|
npm install @antv/l7
|
2019-11-16 22:22:13 +08:00
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
### Features
|
|
|
|
|
|
|
|
|
|
### Links
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## Development
|
2019-09-05 17:19:01 +08:00
|
|
|
|
|
2019-10-08 19:20:12 +08:00
|
|
|
|
使用 Yarn Workspace 完成依赖安装以及各包之间的 link 工作:
|
|
|
|
|
```bash
|
|
|
|
|
yarn install
|
2018-11-22 00:27:14 +08:00
|
|
|
|
```
|
|
|
|
|
|
2019-10-08 19:20:12 +08:00
|
|
|
|
开发模式:
|
|
|
|
|
```bash
|
|
|
|
|
yarn watch
|
2018-11-22 00:27:14 +08:00
|
|
|
|
```
|
|
|
|
|
|
2019-10-08 19:20:12 +08:00
|
|
|
|
运行 Demo
|
2018-11-22 00:27:14 +08:00
|
|
|
|
```bash
|
2019-10-08 19:20:12 +08:00
|
|
|
|
yarn storybook
|
2018-11-22 00:27:14 +08:00
|
|
|
|
```
|
|
|
|
|
|
2019-10-08 19:20:12 +08:00
|
|
|
|
代替 `git commit` 提交:
|
|
|
|
|
```bash
|
|
|
|
|
yarn commit
|
2018-11-22 00:27:14 +08:00
|
|
|
|
```
|
|
|
|
|
|
2019-11-06 11:57:42 +08:00
|
|
|
|
## view doc example
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
npm start
|
|
|
|
|
```
|
|
|
|
|
visit http://localhost:8000/
|
|
|
|
|
|
2019-10-08 19:20:12 +08:00
|
|
|
|
## Add Package
|
2018-10-23 19:32:42 +08:00
|
|
|
|
|
2019-11-16 22:22:13 +08:00
|
|
|
|
add new package:
|
2018-10-23 19:32:42 +08:00
|
|
|
|
```bash
|
2019-10-08 19:20:12 +08:00
|
|
|
|
lerna create my-pack -y
|
|
|
|
|
```
|
2018-10-23 19:32:42 +08:00
|
|
|
|
|
2019-10-08 19:20:12 +08:00
|
|
|
|
将 ui-lib 作为 my-pack 的依赖:
|
|
|
|
|
```bash
|
|
|
|
|
yarn workspace my-pack add ui-lib/1.0.0
|
|
|
|
|
```
|
2018-10-23 19:32:42 +08:00
|
|
|
|
|
2019-10-08 19:20:12 +08:00
|
|
|
|
将 lodash 添加为所有 package 的依赖(不包含root)
|
|
|
|
|
```bash
|
|
|
|
|
yarn workspaces run add lodash
|
2018-10-23 19:32:42 +08:00
|
|
|
|
```
|
2019-08-01 18:23:38 +08:00
|
|
|
|
|
2019-10-08 19:20:12 +08:00
|
|
|
|
将 typescript 设置为 root 的开发依赖
|
|
|
|
|
```bash
|
|
|
|
|
yarn add -W -D typescript jest
|
2019-11-06 11:57:42 +08:00
|
|
|
|
```
|