update istanbul to nyc (their new cli) to get typescript coverage

This commit is contained in:
Fred K. Schott
2017-11-25 00:05:42 -06:00
committed by Elliot Lee
parent e1630e1693
commit 01ecfb0a07
5 changed files with 337 additions and 316 deletions

3
.gitignore vendored
View File

@@ -61,3 +61,6 @@ out/
scripts/cache
.eslintrc
# nyc (istanbul)
.nyc_output

10
.nycrc Normal file
View File

@@ -0,0 +1,10 @@
{
"include": ["src/**/*.ts"],
"exclude": ["src/**/*.d.ts"],
"extension": [".ts"],
"require": ["ts-node/register"],
"reporter": ["text-summary", "html"],
"sourceMap": true,
"instrument": true,
"cache": true
}

View File

@@ -40,7 +40,6 @@
"gulp-bump": "^0.1.13",
"gulp-rename": "^1.2.0",
"http-server": "^0.8.5",
"istanbul": "^1.1.0-alpha.1",
"jayson": "^1.2.2",
"json-loader": "^0.5.2",
"json-schema-to-markdown-table": "^0.4.0",
@@ -49,6 +48,8 @@
"mocha-junit-reporter": "^1.9.1",
"null-loader": "^0.1.1",
"ts-loader": "^3.2.0",
"nyc": "^11.3.0",
"source-map-support": "^0.5.0",
"ts-node": "^3.3.0",
"typescript": "^2.6.1",
"uglifyjs-webpack-plugin": "^1.1.4",
@@ -65,7 +66,7 @@
"watch": "tsc -w",
"compile-with-source-maps": "babel -D --optional runtime -s -t -d dist/npm/ src/",
"prepublish": "npm run clean && npm run compile",
"test": "istanbul cover _mocha",
"test": "nyc mocha",
"coveralls": "cat ./coverage/lcov.info | coveralls",
"lint": "if ! [ -f .eslintrc ]; then curl -o .eslintrc 'https://raw.githubusercontent.com/ripple/javascript-style-guide/es6/eslintrc'; echo 'parser: babel-eslint' >> .eslintrc; fi; eslint -c .eslintrc src/",
"perf": "./scripts/perf_test.sh",

View File

@@ -1 +1,5 @@
--reporter spec --timeout 5000 --slow 500 --require ts-node/register
--reporter spec
--timeout 5000
--slow 500
--require ts-node/register
--require source-map-support/register

629
yarn.lock

File diff suppressed because it is too large Load Diff