Skip to content

Commit

Permalink
mr master
Browse files Browse the repository at this point in the history
  • Loading branch information
张腾跃 committed May 2, 2021
2 parents c2dc951 + 0e33d5c commit cafa2b3
Show file tree
Hide file tree
Showing 126 changed files with 26,328 additions and 30,724 deletions.
14 changes: 14 additions & 0 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ $ yarn
$ yarn build
```

### npm global
`npm install --global rollup`

`npm install --global prettier`


## examples
```
$ yarn run examples
Expand All @@ -28,6 +34,7 @@ $ yarn run e2e
```



### local build
`npm run build -- --local=/Users/ks/Desktop/weappSdk/utils --types=false wx-mini`

Expand All @@ -37,3 +44,10 @@ types:是否生成声明文件

wx-mini:表示打包的模块,如果想打包多个模块,可以跟着多个模块名称:web wx-mini,不用=


### version script
`npm run version [version] [...modules]`

`npm run version 2.2.2 core`:表示将`core`包的`package.json``version``dependencies``@mitojs`开头的`version`改为2.2.2

`npm run version 2.2.2`表示将`packages`下面的所有包都改为`2.2.2`
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,8 @@ coverage
temp
dist

# analsis
stats.html

packages/*/dist
packages/*/node_modules
29 changes: 7 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@
- [x] 支持原生微信小程序、支持uni-app等微信小程序框架 [@mitojs/wx-mini](https://github.com/clouDr-f2e/mitojs/tree/master/packages/wx-mini)


## 迭代~~~
web性能监控SDK [@Chryseis](https://github.com/Chryseis) coding~,预计6月份出第一版

微信小程序性能监控[@zty1205](https://github.com/zty1205) coding~,预计6月份出第一版


## 安装

Expand Down Expand Up @@ -78,41 +83,21 @@ $ yarn add @mitojs/wx-mini
<script src="https://cdn.jsdelivr.net/npm/@mitojs/wx-mini/dist/wx-mini.js"></script>
```

## 迁移指南
### 改造原因
一开始只有`@zyf2e/mitojs`一个包,里面包含了原生浏览器、Vue、React、微信小程序的所有监控代码,使用起来比较简单,但是微信小程序的包是有大小限制,所以想要尽量限制`mitojs`的大小,分成:

* `@mitojs/core`
* `@mitojs/shared`
* `@mitojs/browser`
* `@mitojs/vue`
* `@mitojs/react`
* `@mitojs/wx-mini`
* `@mitojs/web`

优势:

1. 为了减少包大小
2. 后续好维护,方便添加新功能,如:埋点SDK、node监控
## 使用指南

### 迁移
[使用指南](https://github.com/clouDr-f2e/mitojs/blob/master/docs/guide.md)

* [vue接入指南](https://github.com/clouDr-f2e/mitojs/blob/master/docs/guide.md#Vue)
* [react接入指南](https://github.com/clouDr-f2e/mitojs/blob/master/docs/guide.md#react)
* [wx-mini接入指南](https://github.com/clouDr-f2e/mitojs/blob/master/docs/guide.md#微信小程序)

## 使用指南

[使用指南](https://github.com/clouDr-f2e/mitojs/blob/master/docs/guide.md)


## hooks与配置项

[hooks与配置项](https://github.com/clouDr-f2e/mitojs/blob/master/docs/option.md)




### 示例
[mitojs-在线demo](https://static.91jkys.com/web/mito-vue-demo/#/demo/one)

Expand Down
1,074 changes: 0 additions & 1,074 deletions coverage/clover.xml

This file was deleted.

31 changes: 0 additions & 31 deletions coverage/coverage-final.json

This file was deleted.

224 changes: 0 additions & 224 deletions coverage/lcov-report/base.css

This file was deleted.

Loading

0 comments on commit cafa2b3

Please sign in to comment.