Skip to content

Commit c3bb831

Browse files
Merge pull request #63 from eugenezinovyev/maintenance/readme-update
Readme update
2 parents acf9634 + 40a477c commit c3bb831

File tree

2 files changed

+41
-17
lines changed

2 files changed

+41
-17
lines changed

README.md

Lines changed: 39 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,34 +3,57 @@
33

44
# LCOV viewer
55

6+
Live: **[lcov-viewer.netlify.app](https://lcov-viewer.netlify.app/)**
7+
68
LCOV code coverage report viewer. Parses lcov report files and generates HTML report grouped by directory.
79

8-
## Installation
10+
This repository provides two packages:
911

10-
This repository uses Yarn workspaces. Please use Yarn as a package manager.
12+
| Package | Description |
13+
|-------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------|
14+
| [![npm version](https://badge.fury.io/js/@lcov-viewer%2Fistanbul-report.svg)](https://www.npmjs.com/package/@lcov-viewer/istanbul-report) | Istanbul grouped HTML report. Generates code coverage report grouped by directory. |
15+
| [![npm version](https://badge.fury.io/js/@lcov-viewer%2Fcli.svg)](https://www.npmjs.com/package/@lcov-viewer/cli) | CLI to convert coverage in LCOV format to a grouped HTML report. |
1116

12-
```
13-
> git clone https://github.com/eugenezinovyev/lcov-viewer.git
14-
> cd lcov-viewer
15-
> yarn
16-
> cd packages/app
17-
> yarn start
17+
## Istanbul Report
18+
19+
Istanbul reporter for Jest and nyc. Generates code coverage report grouped by directory.
20+
21+
Documentation: [/packages/istanbul-report](/packages/istanbul-report)
22+
23+
```shell
24+
yarn add -D @lcov-viewer/istanbul-report
25+
npm install -D @lcov-viewer/istanbul-report
1826
```
1927

20-
## Istanbul report
28+
## CLI
2129

22-
The repository provides Istanbul report generator.
30+
CLI to convert coverage in LCOV format to a grouped HTML report.
31+
32+
Documentation: [/packages/cli](/packages/cli)
33+
34+
```shell
35+
yarn global add @lcov-viewer/cli
36+
npm install -g @lcov-viewer/cli
2337
```
24-
yarn add -D @lcov-viewer/istanbul-report
38+
39+
-- OR locally in your project --
40+
41+
```shell
42+
yarn add -D @lcov-viewer/cli
43+
npm install -D @lcov-viewer/cli
2544
```
26-
Check documentation [here](/packages/istanbul-report).
2745

28-
## Live Demo
46+
## Local Development Setup
2947

30-
Check live demo [here](https://lcov-viewer.netlify.app/).
48+
This repository uses Yarn workspaces. Please use Yarn as a package manager.
3149

32-
## Demo
50+
```shell
51+
git clone https://github.com/eugenezinovyev/lcov-viewer.git
52+
cd lcov-viewer
53+
yarn
54+
yarn start
55+
```
3356

34-
Open LCOV viewer in your browser and drop `lcov.info` file into the dropzone.
57+
The open http://localhost:8080/ in your browser and drop `lcov.info` file into the dropzone.
3558

3659
![viewer](https://user-images.githubusercontent.com/1678896/139163904-5f845791-2af5-4cdd-b044-98406b2963b7.gif)

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
"test": "lerna run test --stream",
1515
"test:all": "jest --colors --passWithNoTests",
1616
"version:update": "lerna version --no-push",
17-
"syncpack": "syncpack list-mismatches"
17+
"syncpack": "syncpack list-mismatches",
18+
"start" : "lerna run start --scope @lcov-viewer/app --stream"
1819
},
1920
"devDependencies": {
2021
"@babel/core": "^7.18.6",

0 commit comments

Comments
 (0)