Commit a83200b9 by lxyang

feat:上传0.0.2版本,更新packasg.json文件

parent 4e62325f
......@@ -2,15 +2,24 @@ istanbul-middleware-ry
===================
## 新增使用方法
需先全局安装pm2: npm install pm2@5.2.0 -g --save-dev
代码查看npm包安装:
启动查看服务命令(本地调试) coverage -n || coverage --nodemon(本地调试方案建议使用此方案退出ctrl + c或control + c)
启动查看服务命令coverage -s || coverage --serve
关闭查看服务命令coverage -c || coverage --close
查看命令使用方法coverage -h || coverage --help
```javascript
启动查看服务命令(本地调试)
coverage -n || coverage --nodemon(本地调试方案建议使用此方案退出ctrl + ccontrol + c
启动查看服务命令coverage -s || coverage --serve
关闭查看服务命令coverage -c || coverage --close
查看命令使用方法coverage -h || coverage --help
```
可传入参数
是否收集上报数据进行展示如为false则其他的不触发 IS_PITCHING_PILE (string):true/false 默认 true
是否收集上报数据进行展示如为false则其他的不触发
IS_PITCHING_PILE (string):true/false 默认 true
自动启动服务时的端口号 FRACTION_OF_COVERAGE_PORT(string): 默认10000
项目中添加js文件以vue为例:
src目录下添加xxxx.js,在main.js下引用import './xxxx.js'
.gitignore下添加忽略文件/src/xxxx.js,上传提交时记得注释main.js下的import './xxxx.js'
请求地址为启动覆盖服务的地址如服务端口号为10001: 'http://localhost:10001/coverage/client',
......
{
"name": "istanbul-middleware-ry",
"description": "Connect middleware for Istanbul to handle server-side as well as browser coverage use-cases for node apps",
"version": "0.0.1",
"version": "0.0.2",
"main": "lib/index.js",
"files": [
"lib"
......@@ -52,6 +52,7 @@
"hbs": "^4.2.0",
"nodemon": "^2.0.19",
"nopt": "^6.0.0",
"ry-istanbul-web": "^0.0.2",
"onchange": "^7.1.0",
"pm2": "^5.2.0"
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment