Commit 87586db7 by lxyang

feat: 增加IS_HTML_CSS参数,是否能查看vue文件的html结构

parent ee601c00
......@@ -28,6 +28,7 @@ npm install --save-dev babel-plugin-ry-istanbul
| IS_PITCHING_PILE | Whether in pile | String/Boolean | true (String、Boolean) /false (String、Boolean) | false (Boolean) | false (String, Boolean) true (String) disables instrumentation, true (Boolean) allows it |
| INCREMENT | Whether to filter delta files | String/Boolean | true (String、Boolean) /false (String、Boolean) | false (Boolean) | true (String, Boolean) looks at incremental code, false (String) looks at the full code (including incremental code), false (Boolean) looks at the full code, and does not display new or changed statements. |
| BRANCH | git diff the branch to compare against | String | The branch name to compare against | origin/master | Don't wear it when the IS PITCHING PILE is false |
| IS_HTML_CSS | Whether you can view the html structure of a vue file | Boolean | You can pass false if you don't want to see the html structure | true | false does not allow you to view html or css structures; true allows you to view html or css structures |
## 增加参数说明instrmenttation
| 参数 | 说明 | 类型 | 可选值 | 默认值 | 其他说明 |
......@@ -35,6 +36,8 @@ npm install --save-dev babel-plugin-ry-istanbul
| IS_PITCHING_PILE | 是否插桩 | String/Boolean | true (String、Boolean) /false (String、Boolean) | false(Boolean) | false (String、Boolean) true(String)禁止插桩,true (Boolean)允许插桩 |
| INCREMENT | 是否过滤增量文件 | String/Boolean | true (String、Boolean) /false (String、Boolean) | false(Boolean) | true(String、Boolean)看增量代码,false(String)看全量代码(包括增量代码), false(Boolean)看全量代码,不显示“新增或变更语句” |
| BRANCH | git diff需要对比的分支 | String | 需要对比的分支名 | origin/master | 当IS_PITCHING_PILE为false的时候可以不穿 |
| IS_HTML_CSS | 是否能查看vue文件的html结构 | Boolean | 如果不想看到html结构可以传输false | true | false不能看html、css结构, true可以看html、css结构 |
## Increment interpolation
*In the case of `vue`, This is done via babel.config.js's plugins configuration, as shown in the following code:
......@@ -47,7 +50,8 @@ plugins: [
instrmenttation: {
BRANCH: 'origin/master',
INCREMENT: 'true',
IS_PITCHING_PILE: true
IS_PITCHING_PILE: true,
IS_HTML_CSS: false
}
}
]
......@@ -66,7 +70,8 @@ plugins: [
instrmenttation: {
BRANCH: 'origin/master',
INCREMENT: 'true',
IS_PITCHING_PILE: true
IS_PITCHING_PILE: true,
IS_HTML_CSS: false
}
}
]
......@@ -79,11 +84,13 @@ plugins: [
1. IS_PITCHING_PILE determines if code coverage can be instrumentalized
2. Use the BRANCH parameter to identify the git branch you want to compare against
3. Use INCREMENT to determine if you want to see the incremental code
4. IS HTML CSS to determine if vue should look at html and css structure
## 新增功能说明
* 新增instrmenttation参数
1. 通过IS_PITCHING_PILE判断是否可以插装收集代码覆盖率
2. 通过BRANCH参数确认需要对比的git分支
3. 通过INCREMENT判断是否需要查看增量代码
4. 通过IS_HTML_CSS判断vue下是否要看html及css结构
## other description
......
{
"name": "babel-plugin-istanbul-ry",
"version": "0.0.2",
"version": "0.0.3",
"author": "Thai Pangsakulyanont @dtinth",
"license": "BSD-3-Clause",
"description": "A babel plugin that adds istanbul instrumentation to ES6 code",
......@@ -21,7 +21,7 @@
"cross-env": "^7.0.3",
"istanbul-lib-coverage": "^1.0.0",
"onchange": "^7.1.0",
"ry-istanbul-web": "^0.0.1",
"ry-istanbul-web": "^0.0.4",
"semver": "^6.3.0",
"test-exclude": "^6.0.0"
},
......@@ -54,9 +54,7 @@
"standard": "^14.3.1",
"standard-version": "^3.0.0"
},
"peerDependenciesMeta": {
},
"peerDependenciesMeta": {},
"scripts": {
"coverage": "nyc report --reporter=text-lcov | coveralls",
"release": "babel src --out-dir lib",
......
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