Browse Source

fix: refactor the example folder

master
yangpei 4 years ago
parent
commit
b229e42ed2
  1. 5
      README.en-US.md
  2. 7
      README.md
  3. 5
      README.zh-CN.md
  4. 15
      example/README.md
  5. 14
      example/package.json
  6. 3
      lerna.json
  7. 12
      package.json

5
README.en-US.md

@ -29,10 +29,9 @@ Download this project, install dependencies and start the project.
```bash
$ git clone https://github.com/imgcook/imove.git
$ cd ./imove/example
$ npm install
$ npm start
$ npm run example
```
Open http://localhost:8000/ and you can see the online effect.
### 步骤 2. 绘制流程图

7
README.md

@ -29,10 +29,9 @@
```bash
$ git clone https://github.com/imgcook/imove.git
$ cd ./imove/example
$ npm install
$ npm start
$ npm run example
```
打开 http://localhost:8000/ ,就可以看到线上运行效果。
### 步骤 2. 绘制流程图
@ -66,6 +65,8 @@ $ npm start
## 贡献者 ✨
感谢 [蚂蚁 X6 团队](https://github.com/antvis/X6) 提供的绘图引擎
感谢所有贡献的人 ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->

5
README.zh-CN.md

@ -29,10 +29,9 @@
```bash
$ git clone https://github.com/imgcook/imove.git
$ cd ./imove/example
$ npm install
$ npm start
$ npm run example
```
打开 http://localhost:8000/ ,就可以看到线上运行效果。
### 步骤 2. 绘制流程图

15
example/README.md

@ -1,15 +0,0 @@
# umi project
## Getting Started
Install dependencies,
```bash
$ yarn
```
Start the dev server,
```bash
$ yarn start
```

14
example/package.json

@ -1,5 +1,6 @@
{
"private": true,
"name": "example",
"scripts": {
"start": "umi dev",
"build": "umi build",
@ -19,16 +20,5 @@
"prettier --parser=typescript --write"
]
},
"dependencies": {
"@imove/core": "^0.3.0",
"@umijs/preset-react": "1.x",
"@umijs/test": "^3.2.2",
"antd": "^4.4.3",
"lint-staged": "^10.0.7",
"prettier": "^1.19.1",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"umi": "^3.2.2",
"yorkie": "^2.0.0"
}
"dependencies": {}
}

3
lerna.json

@ -1,6 +1,7 @@
{
"packages": [
"packages/*"
"packages/*",
"example"
],
"version": "0.3.3"
}

12
package.json

@ -2,6 +2,7 @@
"name": "root",
"private": true,
"scripts": {
"example": "npx lerna run --scope example start",
"lint": "eslint --cache --fix --ext .ts,tsx,js,jsx ./packages/**/src > ./.eslint-error.log; exit 0",
"test": "jest --coverage",
"e2e": "cypress open",
@ -65,6 +66,15 @@
"@babel/runtime-corejs3": "^7.9.2",
"core-js": "^3.6.5",
"dumi": "^1.0.37",
"ora": "^4.0.3"
"ora": "^4.0.3",
"@imove/core": "^0.3.0",
"@umijs/preset-react": "1.x",
"@umijs/test": "^3.2.2",
"antd": "^4.4.3",
"lint-staged": "^10.0.7",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"umi": "^3.2.2",
"yorkie": "^2.0.0"
}
}
Loading…
Cancel
Save