Skip to content

Commit fecade8

Browse files
committed
- Docs: Add locally-generated badges for testing, coverage, etc.
1 parent d4a74a6 commit fecade8

File tree

9 files changed

+1208
-7
lines changed

9 files changed

+1208
-7
lines changed

.editorconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,6 @@ trim_trailing_whitespace = true
1414

1515
[package.json]
1616
indent_size = 2
17+
18+
[.mocharc.js]
19+
indent_size = 2

.mocharc.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
module.exports = {
2+
delay: true,
3+
reporter: 'mocha-multi-reporters'
4+
};

CHANGES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
non-array (string), ensure it is converted to an array before
1313
converting to pointer for `pointer`
1414
- Enhancement: Allow path as array in non-object signature
15+
- Docs: Add locally-generated badges for testing, coverage, etc.
1516
- Linting (ESLint): As per latest ash-nazg
1617
- Linting (ESLint): Remove redundant "use strict" with switch to ESM
1718
- Maintenance: 2 sp. for package.json

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
[![npm](https://img.shields.io/npm/v/jsonpath-plus.svg)](https://www.npmjs.com/package/jsonpath-plus)
2+
[![Dependencies](https://img.shields.io/david/s3u/JSONPath.svg)](https://david-dm.org/s3u/JSONPath)
3+
[![devDependencies](https://img.shields.io/david/dev/s3u/JSONPath.svg)](https://david-dm.org/s3u/JSONPath?type=dev)
4+
5+
[![testing badge](https://raw.githubusercontent.com/s3u/JSONPath/master/badges/tests-badge.svg?sanitize=true)](badges/tests-badge.svg)
6+
[![coverage badge](https://raw.githubusercontent.com/s3u/JSONPath/master/badges/coverage-badge.svg?sanitize=true)](badges/coverage-badge.svg)
7+
8+
[![Known Vulnerabilities](https://snyk.io/test/github/s3u/JSONPath/badge.svg)](https://snyk.io/test/github/s3u/JSONPath)
9+
[![Total Alerts](https://img.shields.io/lgtm/alerts/g/s3u/JSONPath.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/s3u/JSONPath/alerts)
10+
[![Code Quality: Javascript](https://img.shields.io/lgtm/grade/javascript/g/s3u/JSONPath.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/s3u/JSONPath/context:javascript)
11+
12+
[![License](https://img.shields.io/npm/l/intl-dom.svg)](LICENSE-MIT.txt)
13+
14+
[![issuehunt-to-marktext](https://issuehunt.io/static/embed/issuehunt-button-v1.svg)](https://issuehunt.io/r/s3u/JSONPath)
15+
116
# JSONPath Plus [![build status](https://secure.travis-ci.org/s3u/JSONPath.png)](http://travis-ci.org/s3u/JSONPath)
217

318
Analyse, transform, and selectively extract data from JSON

badges/coverage-badge.svg

Lines changed: 29 additions & 0 deletions
Loading

badges/tests-badge.svg

Lines changed: 1 addition & 0 deletions
Loading

mocha-multi-reporters.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"mochaBadgeGeneratorReporterOptions": {
3+
"badge_output": "./badges/tests-badge.svg"
4+
},
5+
"reporterEnabled": "mocha-badge-generator, spec"
6+
}

0 commit comments

Comments
 (0)