ry-istanbul-web

0.0.7 • Public • Published

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

parameter explain type An optional value default
changeLists Displays an array of delta codes Array [] null
IS_HTML_CSS Whether to display html and css structures Boolean true/false false

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结构 Boolean true/false false

增量代码显示数组,需向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

Package Sidebar

Install

npm i ry-istanbul-web

Weekly Downloads

8

Version

0.0.7

License

BSD-3-Clause

Unpacked Size

292 kB

Total Files

55

Last publish

Collaborators

  • lxyang1199410141