Skip to content

Commit bec224b

Browse files
committed
Chore: coverage
1 parent b4a8a9d commit bec224b

File tree

5 files changed

+17
-2
lines changed

5 files changed

+17
-2
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1+
/.nyc_output
12
/.temp
3+
/coverage
24
/node_modules
35
/index.*
46
/test.*

.nycrc

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"include": ["src/**/*.ts"],
3+
"exclude": ["src/unicode/*.ts"],
4+
"extension": [".ts"],
5+
"require": ["ts-node/register"]
6+
}

.travis.yml

+3
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,6 @@ node_js:
55
- "6.5"
66
- "8"
77
- "10"
8+
9+
after_success:
10+
- npm run coveralls

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
[![npm version](https://img.shields.io/npm/v/regexpp.svg)](https://www.npmjs.com/package/regexpp)
44
[![Downloads/month](https://img.shields.io/npm/dm/regexpp.svg)](http://www.npmtrends.com/regexpp)
55
[![Build Status](https://travis-ci.org/mysticatea/regexpp.svg?branch=master)](https://travis-ci.org/mysticatea/regexpp)
6+
[![Coverage Status](https://coveralls.io/repos/github/mysticatea/regexpp/badge.svg)](https://coveralls.io/github/mysticatea/regexpp)
67
[![Dependency Status](https://david-dm.org/mysticatea/regexpp.svg)](https://david-dm.org/mysticatea/regexpp)
78

89
The regular expression parser for ECMAScript.

package.json

+5-2
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,13 @@
1414
"@types/eslint": "^4.16.2",
1515
"@types/mocha": "^5.2.2",
1616
"@types/node": "^10.3.3",
17+
"coveralls": "^3.0.1",
1718
"dts-bundle": "^0.7.3",
1819
"eslint": "^4.19.1",
1920
"eslint-plugin-mysticatea": "^5.0.0-beta.15",
2021
"mocha": "^5.2.0",
2122
"npm-run-all": "^4.1.3",
23+
"nyc": "^12.0.2",
2224
"rimraf": "^2.6.2",
2325
"rollup": "^0.60.7",
2426
"rollup-plugin-node-resolve": "^3.3.0",
@@ -35,16 +37,17 @@
3537
"build:rollup": "rollup -c",
3638
"build:dts": "dts-bundle --name regexpp --main .temp/index.d.ts --out ../index.d.ts",
3739
"clean": "rimraf .temp index.*",
40+
"coveralls": "nyc report --reporter=text-lcov | coveralls",
3841
"lint": "eslint scripts src test --ext .ts",
3942
"pretest": "run-s build lint",
40-
"test": "_mocha --require ts-node/register --reporter dot --timeout 10000 \"test/*.ts\"",
43+
"test": "nyc _mocha \"test/*.ts\" --reporter dot --timeout 10000",
4144
"update:test": "ts-node scripts/update-fixtures.ts",
4245
"update:ids": "ts-node scripts/update-unicode-ids.ts",
4346
"preversion": "npm test",
4447
"version": "npm run -s build",
4548
"postversion": "git push && git push --tags",
4649
"prewatch": "npm run -s clean",
47-
"watch": "npm run -s test -- --watch-extensions .ts --watch --growl"
50+
"watch": "_mocha \"test/*.ts\" --require ts-node/register --reporter dot --timeout 10000 --watch-extensions .ts --watch --growl"
4851
},
4952
"repository": {
5053
"type": "git",

0 commit comments

Comments
 (0)