0.0.7 • Published 1 year ago

ry-istanbul-web v0.0.7

Weekly downloads
-
License
BSD-3-Clause
Repository
-
Last release
1 year ago

ry-istanbul-web - istanbul transformed js

ry-istanbul-web - istanbul改后的js

istanbul documentation can be found here

https://istanbul.js.org/

Istanbul 文档可参考

http://www.npmdoc.org/istanbulzhongwenwendangzhongwenshili.html

Getting started

$ npm i ry-istanbul-web

安装命令

$ npm i ry-istanbul-web

Add parameter description

parameterexplaintypeAn optional valuedefault
changeListsDisplays an array of delta codesArray[]null
IS_HTML_CSSWhether to display html and css structuresBooleantrue/falsefalse

For the delta code to display the array, you need to add an array of changeLists to the window.coverage object, such as 3,4 for the third, third and fourth lines of the delta code vue transmits IS_HTML_CSS to control whether to display css and html code, while other frameworks can directly see html and css structures without transmission

增加参数说明

参数说明类型可选值默认值
changeLists显示增量代码数组Array[]null
IS_HTML_CSS是否显示html、css结构Booleantrue/falsefalse

增量代码显示数组,需向window.coverage对象中增加changeLists数组,如3,4为增量代码行数第三3和第4行 是否显示css和html代码,vue下传输IS_HTML_CSS进行控制,其他框架则无需传输可直接看到html、css结构

other description

This plugin needs to be used with babel-plugin-istanbul-ry and istanbul-middleware-ry

其他说明

本插件需配合babel-plugin-istanbul-ryistanbul-middleware-ry一起使用

babel-plugin-istanbul-ry

istanbul-middleware-ry